Re: Form parsing -apprentice
| From: | Alexandru Coseru | Date: | Thu, 17 Apr 2003 08:00:49 +0000 |
| Subject: | Re: Form parsing -apprentice | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144239@lists.php.net to get a copy of this message | ||
Try:
$uname=$HTTP_POST_VARS['uname'];
before checking if it's set..
You have register_globals set to off.... (I guess..)
Alex
----- Original Message -----
From: "Taro Kodama" <anpanman2k3@yahoo.com>
To: <php-general@lists.php.net>
Sent: Thursday, April 17, 2003 10:57 AM
Subject: [PHP] Form parsing -apprentice
> Hi,
> I'm just trying to pass information from a form and
> display the output. All I get is the message (No name
> submitted). Nothing seems to be passed.
>
> Please help this "Apprentice"
>
> ----------------------
> <html>
> <head>
> <title>Before</title>
> </head>
> <body>
>
> <form action="after.php" method="post" name="testform"
> id="testform" enctype="multipart/form-data">
> <input type="text" name="uname" size="25"
> maxlength="25">
> <input type="submit" name="submit" value="submit">
> </form>
>
> </body>
> </html>
> ----------------------
> <html>
> <head>
> <title>After</title>
> </head>
> <body>
>
> <?php
> if(empty($uname))
> {
> die("No Name submitted");
> }
> else
> {
> echo $uname;
> }
> ?>
>
> </body>
> </html>
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>