I have a while loop wich creates forms like:
$result3 = mysql_query("SELECT * FROM Afbeeldingen WHERE ImgId =$imgid ORDER BY AfbeeldingPrior DESC");
while($row3 = mysql_fetch_array($result3))
{
?>
<form method=POST name="form3" action="kamer.php">
<input type="hidden" name="id" value="<?php echo$kamerid;?>">
<input type="hidden" name="afbeeldingplus" value="12345">
</form>
<?php
}
I want to post these forms with a text link. Normally I use
<script>
function f3_submit()
{
document.form3.submit();
}
</script>
and then I put echo "<a href=\"##\" onClick=\"f3_submit();\" >";
under the form
but because I got a lot of forms with the same name this wont work.
it doesn't post anything !
How can I post these forms with a text link, so without a submit button.