Global Variables and Form Variables

From: Date: Mon, 12 Jan 2004 14:43:27 +0000
Subject: Global Variables and Form Variables
Groups: php.windows 
Request: Send a blank email to php-windows+get-22561@lists.php.net to get a copy of this message
For some reason, the first time I attempt to access a form variable or global variable PHP does not seem to think it's defined. For each one that shows an "undefined" error, I've had to put the following code at the beginning of the script. Should I have to do this? <?php if (!isset($somevar)) { $somevar = ""; } ?> I have the register_globals set to true in the php.ini. and I restarted my server. Any ideas? Thanks much, Jim

« previous php.windows (#22561) next »