Chances are register_globals is off... Try using $_POST['UserName'] instead of $UserName
John -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org http://www.coggeshall.org/ -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- >-----Original Message----- >From: David McGlone [mailto:[EMAIL PROTECTED] >Sent: Friday, April 04, 2003 7:38 AM >To: [EMAIL PROTECTED] >Subject: [PHP] newbie help, pressing the submit button returns nothing > > >Hi all, I have a real quick question. I'm trying to learn PHP >and right now im >working with variables, anyway, I cannot get the code below to work >correctly, could anyone help me out here the problem is, when >you submit the >name, the name will not appear at all. > > <code below> > ><HTML> ><FORM METHOD="post"> >Name:<br> ><INPUT NAME="UserName" TYPE="text"><br> ><INPUT TYPE="SUBMIT" VALUE="Enter"> ></FORM> ><br> >Your name is: ><?php > >echo ($UserName); >?> > ></html> >-- >David M. >Edification Web Solutions >http://www.edificationweb.com > >-- >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