RE: [PHP] What the hell is wrong???
| From: | Brian McGarvie | Date: | Thu, 20 Jun 2002 08:08:51 +0000 |
| Subject: | RE: [PHP] What the hell is wrong??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103087@lists.php.net to get a copy of this message | ||
> What the hell is wrong with this code :
>
> <html>
> <head>
> </head>
> <body>
> <?php
> echo $name;
> ?>
>
> <form action="self.php" method="post">
> <input type="text" name="name" size=20>
> <input type="submit" value="go">
> </form>
>
> </body>
> </html>
>
What is the name of the file?
Also... if you probably meant to use $PHP_SELF however, if register_globals is Off this wont work,
you'll need to use, $_SERVER['PHP_SELF']
...
[ --------------------------------------------------------- ]
[ Brian M McGarvie - Director ]
[ mcgarvie:net OnLine IT Consultancy ]
[ http://www.mcgarvie.net :: http://www.the-local-guide.com ]
[ --------------------------------------------------------- ]