Page 1 of 1

Parse Error, Unexpected T_Variable

Posted: Sat May 27, 2006 8:58 pm
by cscrofani
Hi Everyone,

I am getting this error, and am not sure why - Parse error: parse error, unexpected T_VARIABLE in c:\inetpub\wwwroot\zipcode_response.php on line 52

Here's the code that the error is referring to:

Code: Select all

$zipCode = $_Post ['ZipCode']

$updateRecord = new FX($serverIP,$webCompanionPort); //this is the line that the error message is referring to
$updateRecord -> SetDBData('FXCart.fp7','Orders_Temp');
$updateRecord -> SetDBPassword('pass','user');
$updateRecord -> AddDBParam('Order_No',$_SESSION['ordno']);
$updateRecord -> AddDBParam('ZipCode',$zipCode);

$updateRecordResult = $updateRecord -> FMEdit();
I'm just trying to update an existing record with a zip code. Y'all have any ideas?

Thanks,
Chris

Posted: Sat May 27, 2006 9:04 pm
by hawleyjr
Take a look at this line:

Code: Select all

$zipCode = $_Post ['ZipCode']
You're missing something ;)

Posted: Sat May 27, 2006 9:13 pm
by cscrofani
Har har har! How'd I miss that!

Posted: Sat May 27, 2006 9:17 pm
by hawleyjr
No need to start a new topic...
cscrofani wrote:Hi Everyone,

Now I am getting this error, and am not sure why - Undefined variable: _Post in c:\inetpub\wwwroot\zipcode_response.php on line 51

Here's the code that the error is referring to:

Code: Select all

$zipCode = $_Post ['ZipCode'];  //this is the line that the error message is referring to

$updateRecord = new FX($serverIP,$webCompanionPort);
$updateRecord -> SetDBData('FXCart.fp7','Orders_Temp');
$updateRecord -> SetDBPassword('pass','user');
$updateRecord -> AddDBParam('Order_No',$_SESSION['ordno']);
$updateRecord -> AddDBParam('ZipCode',$zipCode);

$updateRecordResult = $updateRecord -> FMEdit();
I'm just trying to update an existing record with a zip code, by grabbing post data from the previous page. Any ideas?

Thanks,
Chris

Posted: Sat May 27, 2006 9:34 pm
by feyd
hint: variables are case sensitive.

Posted: Sat May 27, 2006 9:56 pm
by cscrofani
Man I'm on a roll today!

Thanks feyd