Re: Simple form not passing variables, Why??

From: Date: Sat, 13 Jan 2001 19:06:14 +0000
Subject: Re: Simple form not passing variables, Why??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34388@lists.php.net to get a copy of this message
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/ On Sat, 13 Jan 2001, Christian Reiniger wrote: > On Saturday 13 January 2001 00:36, jeff fitzmyers wrote: > > > The code below does not work. What could be causing > > > Please enter user name here: > > <FORM> > > Pull out your favourite HTML documentation and read again through the > discussion of the <form> tag > > -- > Christian Reiniger > LGDC Webmaster (http://sunsite.dk/lgdc/) > > The use of COBOL cripples the mind; its teaching should, therefore, > be regarded as a criminal offence. > > - Edsger W. Dijkstra > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#34388) next »