Not sure what i am doing wrong here but when i fill out my form and press submit i get the following error message... Cannot POST /form_process.php Thank you for your help.
<form method="post" name="contact_form" action="form_process.php">
<br>
<p>Name:
<input name="name" type="text" id="name"><br>
</p>
<p>E-mail:
<input type="text" name="email" id="email">
</p>
<p>Comment:
<br><textarea type="text" name="comment" id="comment" > </textarea></p>
<p>
<input type="submit" value="Submit" name="submit" id="submit">
<input type="reset" value="Reset" id="reset">
</form>
And here is my php :
<?php
if ( isset( $_POST['submit'] ) )
$name = $_POST['name'];
$email = $_POST['email'];
$comment = $_POST['comment'];
$to = 'my email address goes here';
$subject = 'New Message';
mail ( $to, $string $subject,$comment, "From " . $name);
echo "Your email has been sent";
?>