RE: [PHP-WIN] register_globals and php 4.2

From: Date: Fri, 10 May 2002 07:18:10 +0000
Subject: RE: [PHP-WIN] register_globals and php 4.2
Groups: php.windows 
Request: Send a blank email to php-windows+get-13679@lists.php.net to get a copy of this message
> -----Original Message----- > From: Afan Pasalic [mailto:afan@sprout.net] > > I have the same problem but putting $var_name = > $_GET['var_name'] didn't solve the problem. I put it on the > top of the page (e.g. line no. 2) and I'm getting error: > PHP Warning: Undefined index: var_name in > F:\bhdanas.com\index.php on line 2 > > Any idea? > > > Afan if (!isset($_GET['var_name'])) { $var_name = "default value"; } else { $var_name = $_GET['var_name']; } /brother

« previous php.windows (#13679) next »