#39049 [Opn->Bgs]: IF statment problem

From: Date: Thu, 05 Oct 2006 14:29:40 +0000
Subject: #39049 [Opn->Bgs]: IF statment problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103142@lists.php.net to get a copy of this message
ID: 39049 Updated by: tony2001@php.net Reported By: bojan dot saksida at volja dot net -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Windows XP PHP Version: 5.2.0RC4 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-10-05 14:27:46] bojan dot saksida at volja dot net Sory abaut that, but second die shoud be called, but it doesn't ------------------------------------------------------------------------ [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

« previous php.bugs (#103142) next »