RE: [PHP] html input and php (newbie) --> What I was asking with my thoughts on Search Engine
| From: | Chuck Payne | Date: | Tue, 24 Sep 2002 19:48:45 +0000 |
| Subject: | RE: [PHP] html input and php (newbie) --> What I was asking with my thoughts on Search Engine | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117469@lists.php.net to get a copy of this message | ||
This what I was asking, I want someone to press submit then have the returns
print out in one are of the table. So could I do this?
<?php
if ($submit == "click"){
echo "$sql_result";
}
?>
So instead of doing a search.html that calls on do_search.php like most
books teach. I am wanting to do a search.php. Just print the information on
that page.
Chuck
-----Original Message-----
From: Jesse Cablek [mailto:php@list.everchanging.org]
Sent: Tuesday, September 24, 2002 3:39 PM
To: php-general@lists.php.net
Subject: RE: [PHP] html input and php (newbie)
Anna Gyor <mailto:bali1a@freemail.hu> scribbled;
>
> Hi,
>
> I just began to learn php and I have te following code. How can I get
> the input field value in the php script? Because my script doesn't
> work. $UserName is always an empty string.
>
> <?php
> if ($submit == "click"){
> echo "Hello, $UserName";
> }
[...]
>
Assuming register_globals=off, use $_POST['UserName'] instead
-jesse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php