Hey Marcel,
If you use images for your submit buttons like so:
<form action="myForm.php" method=post>
<!-- other form elements here -->
<INPUT TYPE = "image" SRC = "/images/submit1.gif" NAME="submit1" VALUE="Submit One" BORDER = "0">
<INPUT TYPE = "image" SRC = "/images/submit2.gif" NAME="submit2" VALUE="Submit Two" BORDER = "0">
</form>
Then you can check the values of the variables "x" or "y" (these variables return the image pixel offsets where the image was clicked) to see which submit image was pressed:
<?php
if (!empty(submit1_x)) {
// do whatever
}
if (!empty(submit2_x)) {
// do whatever
}
?>
"_y" works equally well in the above examples.
Hope This Helps
-- Rich Rijnders
-- Irvine, CA U.S.