HTML post form with preset variables
<p>I'll try and explain this as best as I can. Basically, I'm using a form to receive a comment. Upon hitting submit, the action creates a link similar to this: <a href="http://localhost:8080/camagru/comment.php?comment=test&amp;post=Post" rel="nofollow">http://localhost:8080/camagru/comment.php?comment=test&amp;post=Post</a></p>

<p>I have a variable with the image name in it that I want to pass as well, so something like this: <a href="http://localhost:8080/camagru/comment.php?img=test.png&amp;comment=test&amp;post=Post" rel="nofollow">http://localhost:8080/camagru/comment.php?img=test.png&amp;comment=test&amp;post=Post</a></p>

<p>I've tried using <code>&lt;form action="&lt;?php echo commentpost.php?img=$img?&gt;"&gt;</code> But everytime the submit button is pressed, it erases the img variable from POST and only puts in the new variables from the form.</p>

<p>Any suggestions?</p>