Re: Include???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/23/07, Greg Donald <gdonald@xxxxxxxxx> wrote:

On 5/23/07, Dan Shirah <mrsquash2@xxxxxxxxx> 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") {

== not =


--
Greg Donald
http://destiney.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


   Greg is absolutely correct, Dan.  When using an equal operand in an if()
clause, you have to use double equal signs ( == ).  The single equal signs
are for setting variables, not evaluating a statement.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux