Jump to content


Photo

Undefined Variable


  • Please log in to reply
2 replies to this topic

#1 cscrofani

cscrofani
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 28 May 2006 - 02:22 AM

Hi Everyone,

Now I'm 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:
$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

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 28 May 2006 - 02:34 AM

$zipCode = $_POST['ZipCode'];
Try that instead
Legend has it that reading the manual never killed anyone.
My site

#3 cscrofani

cscrofani
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 28 May 2006 - 02:59 AM

[!--quoteo(post=377725:date=May 27 2006, 04:34 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ May 27 2006, 04:34 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
$zipCode = $_POST['ZipCode'];
Try that instead
[/quote]

Haha, oops.

Thanks man!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users