I only have a basic understanding of html. What i want to do is have a group of form submit buttons within the same form but i need each button to pass on two values unique to it's self (one is hidden). If i use a <input type="hidden"
Yes, you can have multiple submit buttons on a single form, however if you have a hidden field within the form, each submit button is going to submit that field. If each button needs to pass a certain variable, you can assign the value of the variable to the button instead of a hidden field, that way each button will submit a different value. I once did something like this just for fun, where I used submit buttons as a menu to navigate a site. The code I used had the buttons with different values of each button would determine what content to load. You will probably want to keep each value the same and give each button a different name. Then using php, you can check which button was clicked.
Form would be something like
-
-
<form method="post" action="index.php">
-
<input name="val1" type="submit" value="submit" />
-
<input name="val2" type="submit" value="submit" />
-
<input name="val3" type="submit" value="submit" />
-
<input name="val4" type="submit" value="submit" />
-
</form>
-
-
and then using php to determine the button that was clicked would be something like...
-
if($_POST['val1']) {
-
///code for val1
-
}
-
Good luck and hope this helps!