I want to display two similar forms using a function within a loop, they look fine but when I test whichever submit button I click (there is one per form) it always assumes that the last submit button to be created is the one which has been pressed.
Is it possible to use variables for submit buttons and then when checking for isset($_POST) etc?
Code: Select all
<?php
echo "<input type='submit' name='stints$loopz' value='Go'>\n";
..........
if (isset($_POST['stints$loopz']))
?>Thanks for any advice, I can post the code I've got so far if needed but it's quite long-winded.