How do I nest php in an html <form> tag on facebook?

realslimeball

New member
This is what I originally wanted to happen:

<form action="step2.php" method="post">

name<br/><input type="text" name="name"/>
email<br/><input type="text" name="email"/>
<input type="submit" value="send" />

</form>

step2.php:
<?php

$name = $_POST['name']
$email = $_POST['email']

mail('[email protected]')

?>

However this cannot be executed for some reason, possibly because the code is wrong (first time using php) or possibly because the .htaccess file on the server i uploaded to needs some modding before allowing me to execute the php file.

To pre-empt all the possible problems this may give, I was wondering if it was posible to nest the PhP in the html form itself. Is it possible to do this in a <form> tag and if so, how? if not, is my initial php code correct?
by the by, this code is going to go into the FBML box on facebook. Has anyone ever successfully gotten a form to work on facebook and if so, how?!
 
Back
Top