Jump to content

elseif problem.


947740

Recommended Posts

I have an else if statement:

 

else if(isset($_POST) && ($_POST['pass'] != $_POST['cpass'] || $_POST['pass'] == "" || $_POST['cpass'] == "" || $_POST['host'] == "" || $_POST['dbname'] == "")) {

 

I want it to check if the form has been submitted, and if there are problems with the submitted data.  The code posted above does not work and always posts the error message.  I could do this with another if statement, but I want to know if I can do it in one statement.

 

Help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/107029-elseif-problem/
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.