If no action tag is specified, it'll default to the current page. Just FYI. It's up to the browser, though, so some may decide not to do anything...
---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -----Original Message----- > From: Petre Agenbag [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 7:43 AM > To: David McGlone > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] newbie help, pressing the submit button returns nothing > > Your problem is not with PHP but with basic HTML. > Your <FORM> tag needs an action="www.somepage.com" in order to "do" > something. With PHP, you can call the same page back onto itself. > > On Fri, 2003-04-04 at 14:37, David McGlone wrote: > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php