#39049 [Opn]: IF statment problem
| From: | bojan dot saksida at volja dot net | Date: | Thu, 05 Oct 2006 14:27:46 +0000 |
| Subject: | #39049 [Opn]: IF statment problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103140@lists.php.net to get a copy of this message | ||
ID: 39049
User updated by: bojan dot saksida at volja dot net
Reported By: bojan dot saksida at volja dot net
Status: Open
Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5.2.0RC4
New Comment:
Sory abaut that, but second die shoud be called, but it doesn't
Previous Comments:
------------------------------------------------------------------------
[2006-10-05 14:22:54] bojan dot saksida at volja dot net
Description:
------------
I have a problem in if statment, where i if with more than one
statment. i would prefer this method instead nested if statments. I
also tried instead "or" i used "||" syntax.
Reproduce code:
---------------
$form['option_form']['method'] = "post";
if ($form['option_form']['method'] != "post" or
$form['option_form']['method'] != "get" or
$form['option_form']['method'] != "submit")
{
die ("In this case it will run this part of IF statment, but it
shoudn't");
}
else
{
die("This part it shoudnt do it.");
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39049&edit=1