* Thus wrote Wei Wang ([EMAIL PROTECTED]):
> 
> <? function show_form($first="",$last="") {  ?>
> 
> <form action="formprac.php" method="POST">
note the method ----------------------^^^^

> First Name:
> <input type=text name=first value="<?echo $first?>">
> <br>
> Last Name:
> <input type=text name=last value="<?echo $last?>">
> <br> 
> 
> <input type=submit>
> </form>
> 
> <? } 
> 
> 
> if(!isset($first)) {

make this 
if (!isset($_POST['first'])) {

see:
http://php.net/language.variables 
http://us3.php.net/register_globals


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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

Reply via email to