|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18678 Undefined variable - ERROR
Submitted: 2002-07-31 14:33 UTC Modified: 2002-07-31 14:44 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Josh at halodezigns dot com Assigned:
Status: Not a bug Package: *Web Server problem
PHP Version: 4.2.1 OS: web server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 26 = ?
Subscribe to this entry?

 [2002-07-31 14:33 UTC] Josh at halodezigns dot com
I have a email form on my website and i've looked everwhere for help with this php code.

When the sever i use was updated with php version 4.2.1 the form no longer worked and gave me the following error:

error log:

[Wed Jul 31 09:35:29 2002] [error] PHP Notice:  Undefined variable:  REMOTE_ADDR in /home/halo/sendmail.php on line 16
[Wed Jul 31 09:35:29 2002] [error] PHP Notice:  Undefined variable:  action in /home/halo/sendmail.php on line 21



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-31 14:36 UTC] Josh at halodezigns dot com
One more thing, The lines of code are as follows:

15 - // Gets the IP Address
16 - if ($REMOTE_ADDR == "") $ip = "no ip";
17 - else $ip = getHostByAddr($REMOTE_ADDR);
18 - 
19 - //Process the form data!
20 - // and send the information collected in the Flash form to Your nominated email address
21 - IF ($action != "")
 [2002-07-31 14:44 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 02:01:31 2023 UTC