Re: Include???

From: Date: Wed, 23 May 2007 14:28:01 +0000
Subject: Re: Include???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255400@lists.php.net to get a copy of this message
Hi Dan, Wednesday, May 23, 2007, 3:24:11 PM, you wrote: > Okay, I think I'm doing everything right, but for whatever reason my include > isn't working. > <?php > echo $_POST['status_code']; > if ($_POST['status_code'] = "C") { > include ('complete_save.php'); > } ?>> > The echo of my status_code retruns the correct value so the if should > trigger. if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a single equals sign in this example. Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window"

« previous php.general (#255400) next »