Hi,
Please could I get some help with the following code, I can't see anything wrong with it and I'm at my wits end!
Searched all over Google and have used various scripts but none work - when I upload my Contact.html and mailer.php, I always get an Error 403 when I click "Submit".
I'm with 1&1 (beginner package) but it says it supports php so I'm not sure what I'm doing wrong.
Contact.html code:
<form action="http://www.mywebsite.co.uk/mailer.php" method="post" name="contactform" id="contactform">
<input name="first_name" type="text" class="SubSubTitle" style="width:205px; background-color: #F0F7FF; border: 1px solid #999; padding: 5px; font: Trebuchet MS, Arial, Helvetica, sans-serif" value="Enter your first name *" size="30" maxlength="50"; />
<br />
<br />
<input name="last_name" type="text" class="SubSubTitle" style="width:205px; background-color: #F0F7FF; border: 1px solid #999; padding: 5px; font: Trebuchet MS, Arial, Helvetica, sans-serif" value="Enter your last name *" size="30" maxlength="50"; />
<br />
<br />
<input name="email" type="text" class="SubSubTitle" style="width:205px; background-color: #F0F7FF; border: 1px solid #999; padding: 5px; font: Trebuchet MS, Arial, Helvetica, sans-serif" value="Enter your e-mail address *" size="30" maxlength="80"; />
<br />
<br />
<input name="telephone" type="text" class="SubSubTitle" style="width:205px; background-color: #F0F7FF; border: 1px solid #999; padding: 5px; font: Trebuchet MS, Arial, Helvetica, sans-serif" value="Enter you telephone number" size="30" maxlength="30"; />
<br />
<br />
<textarea name="comments" cols="25" rows="6" class="SubSubTitle" style="width:205px; background-color: #F0F7FF; border: 1px solid #999; padding: 5px; font: Trebuchet MS, Arial, Helvetica, sans-serif" maxlength="1000";>Comments *</textarea>
<br />
<br />
<input type="submit" value="Submit" />
</form>
mailer.php code:
<?php
$first_name = $_REQUEST['first_name'] ;
$last_name = $_REQUEST['Last_name'] ;
$email = $_REQUEST['email'] ;
$telephone = $_REQUEST['telephone'] ;
$comments = $_REQUEST['comments'] ;
mail( "
[email protected]", "Enquiry from Your Website",
$message, "From: $email, Message: $comments" );
header( "Location: http://www.mywebsite.co.uk/thankyou.html" );
?>
Thanks for any help in advance,
Mike