View Single Post
  #8 (permalink)  
Old October 1st, 2003, 03:23 PM
nikolai nikolai is offline
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wait, so it's still not working? If your code is correct (and I'll include a "correct" application below), and it's still not working, perhaps your web server is misconfigured and is preventing any user request variables (get, post, cookie) from reaching the PHP interpreter.

Here's that correct application:

<html>
<head><title>$_GET test</title></head>
<body>
<form method="get" action="<?php echo $_SERVER['PHP_SELF'];?>">
  <input type="text" name="input" />
  <input type="submit" name="submit" value="Go" />
</form>

<?php
if (isset($_GET['input'])) echo "You submitted: " . $_GET['input'];
else echo "\$_GET['input'] is not set.";
?>
</body>
</html>


Take care,

Nik
http://www.bigaction.org/
Reply With Quote