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:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] html input and php (newbie)


Anna Gyor <mailto:[EMAIL PROTECTED]> 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to