Re: stuck n00b

From: Date: Tue, 01 Oct 2002 19:17:44 +0000
Subject: Re: stuck n00b
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118484@lists.php.net to get a copy of this message
Well, $_POST['userName'] is now working, but I could have sworn I was trying that last night and it was returning the same error. Oh well, thanks for the help guys. "Chris Nielsen" <cnielsen@newdawntech.com> wrote in message news:20021001185317.67630.qmail@pb1.pair.com... > I have a simple form: > > <form action="addUser.php" method="post"> > Enter Username: > <input type="text" name="userName"><br><br> > <input type="submit" value="Submit"> > </form> > > Submits to addUser.php: > > <?php > echo $HTTP_SERVER_VARS['userName']; > ?> > > Returns this error in my browser: > > Notice: Undefined index: userName in E:\Inetpub\wwwroot\Test\addUser.php on > line 11 > > Is there a setting in my php.ini file I need to change? register_globals is > off, as that seems to be the preferred method now. But that's my issue, > trying to access this external variable. $_REQUEST doesn't work. $_POST > doesn't either. I have other scripts that it's working in, but I may not > know what I'm saying here. > > PHP 4.2.3 on IIS (personal web server or whatever it's called) on WinXP Pro. > > Thanks for any help you can give. > > >

« previous php.general (#118484) next »