p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Beginning PHP (http://p2p.wrox.com/forumdisplay.php?f=95)
-   -   Undefined Index Error (http://p2p.wrox.com/showthread.php?t=39209)

rit01 March 1st, 2006 10:03 AM

Undefined Index Error
 
Hi All

I hope you don't mind...I am not really from a PHP background but have inherited a site which seems to have a problem with its contact form. The strange thing is that the code seems to work fine on the site's old server but not on the new one though they are both running PHP.

The error I am getting is:

Code:

Notice: Undefined index: mode in c:\domains\website.com\wwwroot\contact.php on line 2
..and the code that it refers to is..
Code:

If ($_GET['mode'] == "sent")
Many thanks

Rit


All times are GMT -4. The time now is 06:02 PM.

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