[PHP-DB] Re: Form Actions in PHP

2003-07-16 Thread Pete Morganic
you need a bit of JAvascript Rick Dahl wrote: I have a small problem. I need to have a form post to two different locations. If a variable is a certain value, it goes to location_one.cgi and if it is another value, it goes to location_two.cgi. This may turn out be a html problem but I figured

[PHP-DB] Re: Form Actions in PHP

2003-07-16 Thread Matthew Ward
Have a PHP script that intervenes, ie. // HTML File form action=decide.php method=post input type=radio name=variable value=0br input type=radio name=variable value=1 /form // decide.php ?php if($_POST[variable] == 0) { header(Location: location_one.cgi?variable=0); } elseif($_POST[variable]