note 32523 added to security.registerglobals
| From: | (email add:chachamyka@yahoo.com) | Date: | Fri, 30 May 2003 04:29:46 +0000 |
| Subject: | note 32523 added to security.registerglobals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49391@lists.php.net to get a copy of this message | ||
all my PHP scripts that starts with an if statements always outputs an error "undefined
variables..."!i only downloaded some of sample applications and it also has the same problem
even if it is only a single page
e.g.
if (!$choice){
GenerateHTMLHeader("Click below to access the Patient Record Book");
GenerateFrontPage();
} else if ($choice == "Search Patient Record "){
GenerateHTMLHeader( "Search using the following criteria:" );
GenerateHTMLForm( 0, "search.php", "SEARCH" );
}
else if ($choice == "Add a New Entry"){
GenerateHTMLHeader( "Please fill in fields: (Name and E-mail mandatory)" );
GenerateHTMLForm(0, "add.php", "ADD ENTRY ") ;
}
?>
error:"Undefined variable choice in......"
----
Manual Page -- http://www.php.net/manual/en/security.registerglobals.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32523
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32523&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32523&report=yes