Jump to content

IF structure


klepec

Recommended Posts

I have multiple forms within one php file.

 

What is the best structure to use?

 

if (isset($_POST["one"])) {
    include...
}
if (isset($_POST["two"])) {
    include...
}
if (isset($_POST["three"])) {
    include...
}

 

OR

 

if (isset($_POST["one"])) {
    include...
}
else if (isset($_POST["two"])) {
    include...
}
else if (isset($_POST["three"])) {
    include...
}

 

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/260451-if-structure/
Share on other sites

Archived

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

×
×
  • Create New...

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.