Help - Search - Members - Calendar
Full Version: Mass Posting a Comment
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
brendant98
Hello. I'm looking for a way to mass post a single comment on this website. Let me give you the details. So, basically, you can comment on someone's profile by going to their profile, entering what you want to say in the textbox, and clicking submit. Once you click submit, it brings you to a different page that says "your comment has been posted". This is the code:

CODE
<td id="submit" colspan="2"><form action="?section=4&mode=2&action=comment" method="post">
            <label for="comment">Post a comment :</label> <br>
            <textarea name="comment" id="comment" rows="4" cols="98" maxlength="1200"></textarea><br>
            <input type="submit" value="Submit">
            <input type="hidden" name="user_id" value="22422">
            </form></td>


So, the value that you see is the profile ID. Every user has a different ID. What I would like to do is be able to comment on two or more profiles by using a single submit button. Is this possible? I've tried doing this using inspect element to change the HTML code:

CODE

<td id="submit" colspan="2"><form action="?section=4&mode=2&action=comment" method="post">
            <label for="comment">Post a comment :</label> <br>
            <textarea name="comment" id="comment" rows="4" cols="98" maxlength="1200"></textarea><br>
            <input type="submit" value="Submit">
            <input type="hidden" name="user_id" value="22422">
                        <input type="hidden" name="user_id" value="22420">
            </form></td>


When I tried that, it would only comment on profile #22420, and not the first one. Would it be possible to do what I'm trying to do, and if so, how? Thanks.
CharlesEF
Unless you have access to the script that handles the submission I don't think you can. You would need to make the 'user_id' into an array by changing to this 'user_id[]', both of them (or more). Then you would need to re-write the submission script to handle the array of values. So, unless you own the site I don't think you can.
Christian J
Sounds like a spamming tool to me...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.