note 32522 added to security.registerglobals
| From: | kaito at rack1 dot php dot net | Date: | Fri, 30 May 2003 04:27:52 +0000 |
| Subject: | note 32522 added to security.registerglobals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49390@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+32522
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32522&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32522&report=yes