rottenpixies Posted May 11, 2007 Share Posted May 11, 2007 I am trying to have a form submit to another source depending on a certain variable. Only problem is that the variable is not defined untill after you submit the form. Basically if a certain text field in the form is left blank i want it to be posting to a different place. Link to comment https://forums.phpfreaks.com/topic/51009-posting/ Share on other sites More sharing options...
MadTechie Posted May 12, 2007 Share Posted May 12, 2007 have a gateway effect a simple little script thats includes the script required! <?php switch($_POST['acctype']) { case "member": include "member.php"; break; case "user": include "user.php"; break; } ?> Link to comment https://forums.phpfreaks.com/topic/51009-posting/#findComment-250989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.