I’m trying to setup an email form to send feedback from my website, here is the form:
<form method='post' action='mailform.php'>
<fieldset>
<label for='message'><b>Reflection:<b></label><br/><br/>
<p>Tell us what you thought of the Workshop, did you enjoy the tasks?, Could we have done anything different?</p>
<textarea name='message' rows='15' cols='80'>
</textarea><br/>
<input type='submit' VALUE='Send' size='5' />
</fieldset>
</form>
and here is the mailform.php
<?php
$message = $_REQUEST['message'] ;
mail("address here", $message);
?>
I keep getting an error which relates to the ?> bit at the end.
What am I doing wrong?
The mail() function expects 3 parameters: