Thanks!, I was getting bogged down in variable
declaration, OOP, etc. This works perfectly:
 
Please enter user name here: <FORM>
<INPUT TYPE=text NAME=name>
<INPUT TYPE=submit VALUE=Submit>
</FORM><BR>
You typed: 
<?
 print $HTTP_GET_VARS["name"];
?>

>>> Within your configurations, is register_globals
on? 
I try this code and it works just fine. Although if
register_globals setting in php.ini is off it will
not, try replacing :                  
 
     echo ($name);
 
 with

     print $HTTP_GET_VARS["name"];

And see what happens. If you want $name type variables
to register as global, then turn the setting to on.
Strangly, iirc, this should be on by default though.
The fact that you have name=Bob in url would suggest
this to be the "problem".  Read about these settings
here :

http://www.php.net/manual/en/configuration.php#ini.register-globals
 
Philip Olson
http://www.cornado.com/ >>>

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to