RE: [PHP-WIN] Notice: Undefined variable:
| From: | Thoenen, Peter Mr. EPS | Date: | Fri, 25 Oct 2002 02:27:38 +0000 |
| Subject: | RE: [PHP-WIN] Notice: Undefined variable: | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16542@lists.php.net to get a copy of this message | ||
RTFM would fix this in 2 minutes but trying to avoid work.
First off, make that <form><div>....</div></form> ... <form> is not a
block
element and you can't place <input>'s in it ... eg
<form><input/></form> ...
you can but its a) illegal b) bad form. But I digress. All your form
variables are in the enviromental arrays $_POST and $_GET .... try <?php
echo $_GET['guest_name']?>
-Peter
> -----Original Message-----
> From: Richard West [mailto:ice_dog76@hotmail.com]
> Sent: Friday, October 25, 2002 05:01
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Notice: Undefined variable:
>
>
> Hey, I just installed apache and php on my desktop and everything was
> working great. I went to go make a form and I am getting these errors
> everytime I try to access one of the variables in the form
>
> Notice: Undefined variable: guest_name in
> C:\www\book_add.php on line 18
>
> anyone got an idea why its doing it. this is what my form looks like.
> <form method=get action="book_add.php">
> Your Name: <input name="guest_name" type="text"><br>
> Your e-mail: <input name="address" type="text"><br>
> Your comments:<br> <TextArea name="comments" cols="50"
> rows="5">
> </textarea>
> <br>
> <br>
> <input type=submit>
> </form>
> and my out put it this
> <?php $guest_name; ?>
> any ideas why I can't access my query variables??
>
> Richard West
> ice_dog76@hotmail.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>