I'm posting at the top because we need to start all over with this. If you're using PHP 4.3.1, then the following WILL work. If it doesn't then you are doing something wrong in your coding and it's not PHP. Check your spelling and the case of your variables (PHP is case sensitive).
<HTML> <!-- Jobapp.html--> <BODY> <H1>Practice app</H1> <p>Fill in the name and echo it back to the user.</p> <FORM NAME='frmJobApp' METHOD="post" action="jobapp_action.php"> Please enter your name: <INPUT NAME="applicant" TYPE="text"><br> <INPUT NAME="enter" TYPE="submit" VALUE="Enter"> </FORM> </BODY> </HTML> <HTML> <!-- Jobapp_action.php--> <BODY> Hello <?php echo $_POST['applicant']; ?>! </BODY> </HTML> ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -----Original Message----- > From: David McGlone [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 11:48 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] newbie help, pressing the submit button returns nothing > > On Friday 04 April 2003 08:54 am, Eugene Mah wrote: > > At 08:24 04-04-03 -0500, you wrote: > > >On Friday 04 April 2003 07:43 am, Petre Agenbag wrote: > > > > 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. > > > > > >Hi Petre, Thanks for the reply, I have actually tried this too and all > the > > >output I get is "Welcome !" but the username that was entered into the > > > form box should appear between the Welcome and !, Please take a look > at > > > the code > > > > > >below: > > > >>First page named: jobapp.html > > > > > >-<HTML> > > ><!-- Jobapp.html--> > > ><BODY> > > ><H1>Practice app</H1> > > ><p>Fill in the name and echo it back to the user.</p> > > ><FORM NAME='frmJobApp' METHOD=post action="jobapp_action.php"> > > >Please enter your name: > > ><INPUT NAME="applicant" TYPE="text"><br> > > ><INPUT NAME="enter" TYPE="submit" VALUE="Enter"> > > ></FORM> > > ></BODY> > > ></HTML> > > >--------------------------------------- > > > > > > >>Second page: named jobapp_action.php > > > > > >Welcome <?php echo $applicant; ?>! > > > > Unless your register_globals is set to on, > > you should be using > > > > <?PHP echo $_POST['applicant']; ?> > > This isn't working either : - ( > > What in the world could be wrong? > -- > 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