#18678 [Opn]: Undefined variable - ERROR

From: Date: Wed, 31 Jul 2002 18:36:23 +0000
Subject: #18678 [Opn]: Undefined variable - ERROR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15702@lists.php.net to get a copy of this message
ID: 18678 User updated by: Josh@halodezigns.com Reported By: Josh@halodezigns.com Status: Open Bug Type: *Web Server problem Operating System: web server PHP Version: 4.2.1 New Comment: 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 != "") Previous Comments: ------------------------------------------------------------------------ [2002-07-31 14:33:27] Josh@halodezigns.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 PLEASE HELP Josh@HaloDezigns.com ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18678&edit=1

« previous php.bugs (#15702) next »