I have a simple form:
form action=addUser.php method=post
Enter Username:
input type=text name=userNamebrbr
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
[snip]
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
[snip]
You mentioned everything but $_GET{'userName'] :^]
[/snip]
Ooops, typo!
$_GET['userName']
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My form is actually using method=post. And I did use $_POST. Can't
remember if I tried $_GET, but if I'm using post would that even work? I'll
give it a try later and let you know.
Jay Blanchard [EMAIL PROTECTED] wrote in message
[snip]
My form is actually using method=post. And I did use $_POST. Can't
remember if I tried $_GET, but if I'm using post would that even work? I'll
give it a try later and let you know.
[/snip]
My bad! I looked at two e-mails from different folks and saw a GET in one,
and a POST in another.
I was sure I'd tried it, but $_POST works now.
Thanks guys.
Jay Blanchard [EMAIL PROTECTED] wrote in message
000501c2697d$ded95a10$8102a8c0@000347D72515">news:000501c2697d$ded95a10$8102a8c0@000347D72515...
[snip]
My form is actually using method=post. And I did use $_POST. Can't
remember if
6 matches
Mail list logo