RE: [PHP] newbie help, pressing the submit button returns nothing

From: Date: Fri, 04 Apr 2003 15:02:08 +0000
Subject: RE: [PHP] newbie help, pressing the submit button returns nothing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142345@lists.php.net to get a copy of this message
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:david@edificationweb.com] >Sent: Friday, April 04, 2003 7:38 AM >To: php-general@lists.php.net >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 > >

« previous php.general (#142345) next »