I hope you can help me. It appears to be an easy problem to solve but I’m getting nowhere.
I’ve just uploaded a new site: www.teachinthesun.co.uk and amongst other things there is a simple contact form (http://www.teachinthesun.co.uk/contact.html.) The relevant code is as follows (I’ve taken out all the paragraph tags and so on):
<form method="post" action="sendcontact.php">
your name: <input type="text" name="fName" size="50">
your email address: <input type="text" name="fEmail1" size="50">
your question: <textarea name="fQuestion" cols="50" rows="10" wrap="VIRTUAL"></textarea>
<input type="submit" name="Submit" value="Submit">
</form>
This goes to sendcontact.php (http://www.teachinthesun.co.uk/sendcontact.php) which looks like this:
<?
$message .= "Online Contact Form\n\n";
$message .= "fName : $fName\n\n";
$message .= "fEmail1 : $fEmail1\n\n";
$message .= "fQuestion : $fQuestion\n\n\n";
mail( "admin@teachinthesun.co.uk", "ICAL Enquiry (Teach in the Sun UK)", $message, "From: $fEmail1", "-fadmin@teachinthesun.co.uk" );
header( "Location: http://www.teachinthesun.co.uk/contactmade.html" );
?>
For some reason I just cannot work out, the form comes through fine but there is no message apart from the text (i.e. it says “fName :” but without $fName – in other words it simply is not picking up the information input into the form.
Is there something I am neglecting to do?
Thanks