I need an form like this, each lock.gif send an id value alongwith hidden field “do”:
<form method=“get” action=“download.php”>
<input type=“hidden” name=“do” value=“something” />
<input type=“image” name=“id” value=“6” src=“lock.gif” alt=“” />
<input type=“image” name=“id” value=“7” src=“lock.gif” alt=“” />
</form>
By clicking the first image I expect to have this:
/download.php?do=something&id.x=10&id.y=11&id=6
but I just get this:
/download.php?do=something&id.x=10&id.y=11
If instead, I use:
<form method=“post” action=“download.php”>
<input type=“hidden” name=“do” value=“something” />
<input type=“hidden” name=“id” value=“6” />
<input type=“image” src=“lock.gif” />
</form>
Of course it works, but problem is that the value of “id” is fetched from db, and this form will be created in foreach the db query array, and each row has its own “id”, so if I use the form above in <tr> field, however it works but cannot be W3 validated as <form> should be outside <table> this is why I need something like the first one that I can put the form tag outside table tag and in each row just have the image to submit them W3 validated. Please help for this.