|
Posted by Mark ??;-\) on 11/03/05 05:03
> If someone could post a tiny code sample, would be fantasic and much
> appreciated.
I'm still pretty much learning myself, but this is one way. Let me know if
this helps.
-Mark
<?php
$content = "<form name='form1' method='post' action=''>
<input type='submit' name='submit1' value='Submit'>
</form>
<form name='form2' method='post' action=''>
<input type='submit' name='submit2' value='Submit'>
</form>";
print $content;
if (isset($_POST['submit1'])) { //First submit button clicked
print "The first button was clicked";
}
elseif (isset($_POST['submit2'])) { //Second submit button clicked
print "The second button was clicked";
}
//print_r($_POST); //Used for Debugging
?>
Navigation:
[Reply to this message]
|