Re: Include???

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

 



On 23/05/07, Dan Shirah <mrsquash2@xxxxxxxxx> wrote:
Okay, I think I'm doing everything right, but for whatever reason my include
isn't working.
if ($_POST['status_code'] = "C") {

It's a pretty classic error, Not one that I make very often though -
because I will generally write:

if ('C' = $_POST['status_code']) {

If I wrote that, it would fail instantly - because you can't assign to
a constant, so you use double - or triple, as appropriate - equals.
  if ('C' == $_POST['status_code'])

Alister

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


[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