Re: variables not being passed

From: Date: Wed, 21 Jun 2000 18:29:34 +0000
Subject: Re: variables not being passed
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-567@lists.php.net to get a copy of this message
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/ >

« previous php.windows (#567) next »