I think it's a parsing problem, I may be wrong!

I tried this little code, where I am learning how to use forms. So I create a couple of boxes where user enters info and then click submit button, the problem is that when I click submit button nothing appears OR appears the code I typed.

this is the code that creates the text boxes and rest of the components

Enter your info in the space provided

Name:

Email:

Gender: Male Female

Age: Under 30 Between 30 and 60 Above 60

		<p><b>Comments:</b>
			<textarea name = "comments" rows = "3" cols = "40"/></textarea>
		</p>
		
		<div align = "center">
			<input type = "submit" name = "submit" value = "Submit"/>
		</div>
		
		
	</fieldset>	
</form>

then the file handle_form.php id this

<?
	$name = $_REQUEST['name'];
	$email = $_REQUEST['email'];
	
	echo $name;
?>

then nothing is displayed, now if I remove the body tags it prints exactly the code.

Thanks for your help in advance!

[php]

<?php $name = $_REQUEST['name']; $email = $_REQUEST['email']; echo $name; ?> [/php]

[php]
// Note that method is misspelled:

// Should be this:

[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service