Can't get $_GET to work
| From: | Ian Bambury | Date: | Wed, 29 Jun 2005 12:21:48 +0000 |
| Subject: | Can't get $_GET to work | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16399@lists.php.net to get a copy of this message | ||
Hi Everyone,
I'm probably being a bit thick here, but I can't get hold of $_GET or $_POST variables. I've set up 2 files as simply as I can, but no joy.
File a.php
----------
<html>
<head><title></title></head>
<body> name: <form action="b.php" method="get">
<input type="text" name="Name"><br>
<input type="submit" value="send">
</form>
</body>
</html>
-----------
produces http://127.0.0.1/b.php?name=fred
file b.php
---------
<html>
<head><title></title></head>
<body>
Name: <?php echo $_GET['name'] ?>
<br>
</body>
</html>
---------
prints Name:
and nothing else
What *am* I doing wrong?
Cheers,
Ian