...

View Full Version : xampp server variables



DELOCH
06-16-2006, 10:32 PM
Hello, I recently had no trouble with PHP except now I figured out XAMPP does not let me use Server variables

ex(page1.html):
<form action="page2.php" method="get">
<input type="text" name="name"/>
<input type="submit" />
</form>

ex(page2.php):


<?php
echo ("Your username was: ");
echo ($name);
?>


nothing happens!

help please :\

zorg222
06-16-2006, 10:56 PM
If you used the $_GET superglobal it would work. Like this:


<?php
echo ("Your username was: ");
echo ($_GET['name']);
?>

DELOCH
06-17-2006, 05:05 AM
Thanks a ton, you proved PHP works perfectly using XAMPP

thanks again :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum