Text Html Code: <HTML> <HEAD></HEAD> <BODY> <FORM METHOD=POST ACTION="text.php"> Who is your favourite author? <INPUT NAME"Author" TYPE="TEXT"> <BR> <BR> <INPUT TYPE=SUBMIT> </FORM> </BODY> </HTML> Code (markup): Text Php Code: <HTML> <HEAD></HEAD> <BODY> Your favorite Author is: <?php echo $Author; ?> </BODY> </HTML> Code (markup): i checked it in my IIS server at my pc. and in the webserver too. Here is the result: what is the prob? $Author variable didn't get data from Author?
Based on the two codes you have show us above it should be: <HTML> <HEAD></HEAD> <BODY> Your favorite Author is: <?php echo $_POST['$Author']; ?> </BODY> </HTML> Code (markup): Or if you have change that to method=get than its echo $_GET['$Author'];
i solved the prob. the prob wasn't in the code. it was in the php version. i was reading a php4 book and using php5. most of the people use php5 now. so i start reading php5 book. now prob solved.