Jump to content

Archived

This topic is now archived and is closed to further replies.

jwk811

If...Else elseif w/Forms

Recommended Posts

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!

Share this post


Link to post
Share on other sites
[code]
$blah = $_POST['blah'];

if ($blah > 6) {
$action = "something";
}

else if ($blah < 7) {
$action = "nothing";
}

[/code]

You mean something like that?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.