Properly Checking for Submission Using Image Widgets : _GET « Form « PHP






Properly Checking for Submission Using Image Widgets

 
<INPUT TYPE="image" NAME="submit_one" SRC="b.gif">
<INPUT TYPE="image" NAME="submit_two" SRC="b2.gif">


//Properly determining which submission button was clicked in PHP:

<?php
     if(isset($_GET['submit_one_x'])) {

     } elseif(isset($_GET['submit_two_x'])) {
     } else {

     }
?>
  
  








Related examples in the same category

1.Time-Sensitive Form Example
2.Using Arrays with Form Data in PHP
3.Reading Input from the Form