Re: Include???

From: Date: Wed, 23 May 2007 14:57:13 +0000
Subject: Re: Include???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255406@lists.php.net to get a copy of this message
On 23/05/07, Dan Shirah <mrsquash2@gmail.com> 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

« previous php.general (#255406) next »