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"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php