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

Reply via email to