Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 26th, 2004, 02:42 PM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Undefined Variable: Error

Hey everyone!

I am trying to move an exsisting site on a linux server that is 100% working with php.4.1 (or around there) to a windows server 2K3 with the newest stable release of php.

But, Now, with a page that processes orders, I am now getting this error.

Code:
Notice: Undefined variable: Email in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 24

Notice: Undefined variable: id_err in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 87

Notice: Undefined variable: name_err in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 89

Notice: Undefined variable: billing_err in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 90

Notice: Undefined variable: city_err in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 91

Notice: Undefined variable: phone_err in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 92

Notice: Undefined variable: shipname_err in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 93

Notice: Undefined variable: shipaddress_err in c:\Program Files\Ensim\Site Data\frundertest\Inetpub\wwwroot\members\shopping\proc_order.php on line 94
Reply With Quote
  #2 (permalink)  
Old July 26th, 2004, 02:45 PM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And here is my code!

Code:
$ID=$_POST['ID']; 
$Name=$_POST['Name'];
$Bill_Address=$_POST['Bill_Address'];
$City_State_Zip=$_POST['City_State_Zip'];
$Phone=$_POST['Phone'];
$Ship_Name=$_POST['Ship_Name'];
$Ship_Address=$_POST['Ship_Address'];
$Ship_City_State_Zip=$_POST['Ship_City_State_Zip'];
$Phone=$_POST['Phone'];

 
if ($ID == "")
 {
 $id_err = "Please click the back button and enter your ID Number.<br>";
 $send = "no";
 }
 
$Pattern = ".+@.+\..+";
if (!eregi($Pattern, $Email))
 {
 $email_err = "Your e-mail address appears to be invalid. Click the back button to enter your e-mail address.<br>";
 $send = "no";
 }
 
if ($Name == "")
 {
 $name_err = "Please click the back button and enter your name.<br>";
 $send = "no";
 }
 
if ($Bill_Address == "")
 {
 $billing_err = "Please click the back button and enter your billing address.<br>";
 $send = "no";
 }
 
if ($City_State_Zip == "")
 {
 $city_err = "Please click the back button and enter your City, State, and Zip.<br>";
 $send = "no";
 }

if ($Phone == "")
 {
 $phone_err = "Please click the back button and enter your phone number.<br>";
 $send = "no";
 }
 
if ($Ship_Name == "")
{
$shipname_err = "Please click the back button and enter the shipping name.<br>";
$send = "no";
}

if ($Ship_Address == "")
{
$shipaddress_err = "Please click the back button and enter the shipping address.<br>";
$send = "no";
}

if ($Ship_City_State_Zip == "")
{
$shipcity_err = "Please click the back button and enter the shipping city, state, and zip.<br>";
$send = "no";
}

ANY HELP WOULD BE GREAT! THIS IS FOR A CLIENT AND IT NEEDS TO GET DONE.

Thanks so much!

jjmancini

Reply With Quote
  #3 (permalink)  
Old July 27th, 2004, 02:38 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi jjmancini
check your submiting page form method is POST or not,

surendran
(Anything is Possible)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Notice: Undefined variable error on input form tonyb187 Pro PHP 2 May 11th, 2008 07:58 AM
Undefined variable adel_88 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 July 9th, 2007 04:21 PM
Undefined Variable aspire Beginning PHP 4 July 12th, 2006 08:00 AM
undefined variable !! cody44 Beginning PHP 3 January 20th, 2005 05:47 PM
Undefined variable error messages markdawkins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 December 31st, 2004 10:55 AM



All times are GMT -4. The time now is 10:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.