jwk811 Posted September 26, 2006 Share Posted September 26, 2006 How do I make the forms being submitted to have a different action depending on what was submitted? I know you're supposed to use the elseif statment for it but I'm not sure how.. could someone give me an example or some script? Thanks! Link to comment https://forums.phpfreaks.com/topic/22052-ifelse-elseif-wforms/ Share on other sites More sharing options...
Tandem Posted September 26, 2006 Share Posted September 26, 2006 [code]$blah = $_POST['blah'];if ($blah > 6) {$action = "something";}else if ($blah < 7) {$action = "nothing";}[/code]You mean something like that? Link to comment https://forums.phpfreaks.com/topic/22052-ifelse-elseif-wforms/#findComment-98653 Share on other sites More sharing options...
jwk811 Posted September 26, 2006 Author Share Posted September 26, 2006 yeah i think so, thanks ill try that out Link to comment https://forums.phpfreaks.com/topic/22052-ifelse-elseif-wforms/#findComment-98665 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.