Re: variables not being passed

From: Date: Wed, 21 Jun 2000 23:28:46 +0000
Subject: Re: variables not being passed
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-571@lists.php.net to get a copy of this message
> PHP was working a day or so ago, and I haven't done anything since that I > can think of to break it. Have you installed PHP4? If so, I hope you realise that this actually constitutes a "change". If you *are* running PHP4 check that you have register_globals = On in your php.ini file. Otherwise you can still access your form variables using $HTTP_POST_VARS["varname"]. Ignatius ----- Original Message ----- From: Adrian Teasdale <adrian@inovica.com> To: <nicolay@hoey.dk> Cc: <php-windows@lists.php.net> Sent: Thursday, June 22, 2000 4:29 AM Subject: Re: [PHP-WINDOWS] variables not being passed > Thanks to everyone who sent messages either via the list of directly. > > Nicolay's suggestion (below) of putting > > echo $HTTP_POST_VARS["username"] > > did echo the variable, but surely PHP should see the variables anyway? All > of my > other apps which have worked before in PHP3 don't work now, so this is > either a bug or something that I have done wrong (quite likely!). > > PHP was working a day or so ago, and I haven't done anything since that I > can think of to break it. > > Any ideas? > > Ade > > ----- Original Message ----- > From: Nicolay Høy <nicolay@hoey.dk> > To: Adrian Teasdale <adrian@inovica.com> > Sent: Wednesday, June 21, 2000 12:30 PM > Subject: Re: [PHP-WINDOWS] variables not being passed > > > > > > > > *********** REPLY SEPARATOR *********** > > > > On 21-06-2000 at 10:00 Adrian Teasdale wrote: > > > > >Hi all > > > > > >I am having a weird problem with PHP in that it is not passing variables > > >from page to page, either in a form or via URL. > > > > > >Here is an example of a test script I've run: > > > > > ><form method="post" action="testvariables.php"> > > >// this file passes posts to itself > > > > > >Please type your name here:<br> > > ><input type="text" name="username"<br><br> > > ><input type="submit" value="Enter Name"> > > ></form> > > ><?php > > >echo $username; > > >?> > > try echo $HTTP_POST_VARS["username"] > > > > -- > > Venlig Hilsen > > Nicolay Høy > > nicolay@hoey.dk http://www.hoey.dk/ > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#571) next »