Your way does strike me as a strange way to do things: I would favour many
forms with hidden values myself to but ...


<html>
<head><title><title></head>
<body>

<form action=test2.php method=get>
Press the red submit button!<br>
<input type=submit name=red value="Go!"><P>

Press the Blue submit button!<br>
<input type=submit name=blue value="Go!"><P>

But enter your name first!<br>
<input type=text name=name><p>

</form><hr>

Your name is <?php echo($_GET["name"]); ?>!<P>

<?php

if ($_GET["red"] == "Go!") { echo("You pressed the red button!"); }
if ($_GET["blue"] == "Go!") { echo("You pressed the blue button!"); }

?>

</body></html>







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to