Re: variables not being passed

From: Date: Wed, 21 Jun 2000 14:53:48 +0000
Subject: Re: variables not being passed
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-562@lists.php.net to get a copy of this message
At 02:25 PM 6/21/00 +0200, Patrik Bengtsson wrote:
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"]
Check your php.ini file - ensure that track_vars is on. HTH, Zak Greant Creative Director Nucleus Information Service Inc. "A camel is a horse designed by a committee." - Alex Issigonis (Designer of the Austin Mini)

« previous php.windows (#562) next »