Hi all, i'm working from a book trying to learn PHP, using a very simple script to pass variable from one form to output on another page but somehow this doesn't seem to work. My code:
<HTML>
<!-- joapp.html -->
<BODY>
<H1>Learnin Php</H1>
<p>Bung in yer name</p>
<FORM NAME='frmJobApp' Method=POST ACTION="jobapp_action.php">
If your here, then you prolly shouldn't be and realise how lame i am at php, so sod off.<BR><BR>
<INPUT NAME="applicant" TYPE="text"><BR><BR>
<INPUT NAME="enter" TYPE="submit" VALUE="Enter">
</FORM>
</BODY>
</HTML>
and the code for the processed page:
<HTML>
<!-- jobapp_action.php -->
<BODY>
<p>Welcome <?php echo($applicant); ?>!</p>
</BODY>
</HTML>
I get the error:
Notice: Undefined variable: applicant in c:\program files\apache group\apache\htdocs\phptest\jobapp_action.php on line 4
!
but i defined it! so i'm guessing its somet i've done on the install? the index.php file works, i'm using build of 4.3.0 and apache v1.1 (i think)
anyhow, any input would be good as its doing my nut, and yes i'm on a xp box, my fellow housemate who runs redhat and php user for serveral years who's just installed it all again is having the same issue so we're thinking is it the build? any known issues?
Cheers
-Matt