Re: Include???
| From: | Darren Whitlen | Date: | Wed, 23 May 2007 14:28:40 +0000 |
| Subject: | Re: Include??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255401@lists.php.net to get a copy of this message | ||
Dan Shirah 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. This is my include page: <?php echo "test"; ?> VERY simple, but for some reason is not working????change this line: if ($_POST['status_code'] = "C") { to this: if ($_POST['status_code'] == "C") { You need 2 equal signs when comparing. Darren