Stopping $_REQUEST array to give warnings

From: Date: Mon, 24 Dec 2001 11:09:27 +0000
Subject: Stopping $_REQUEST array to give warnings
Groups: php.general 
Request: Send a blank email to php-general+get-78648@lists.php.net to get a copy of this message
Hello, I'm currently trying to code the new PHP way, so register_globals=OFF, but if I try to do things like $test = $_REQUEST["test"]; and the variable test is unknown you receive a warning Warning: Undefined index: test in c:\webserver\test.php What is the new 'proper' way to import a variable in a script without being sure it was passed? (adding a @ to the beginning of the line is not proper you must agree) Thanks, Michael

« previous php.general (#78648) next »