Another question...
Any reason why this shouldn't work?
This form:
Passes to this page to send:
On the face of it, it seems to be working, I don't get any errors or anything. But no mail is coming through
(I know there are elements of the form that don't pass at the moment, just began working on it )
Any reason why this shouldn't work?
This form:
PHP:
<form name="contactus" action="/?p=sendmail" method="post">
Query Type<select name="query_type">
<option selected>- Please Select -</option>
<option value="webmaster@thurrocktech.com">Webmaster</option>
<option value="jamie@thurrocktech.com">Jamie</option>
<option value="steve@thurrocktech.com">Steve</option>
</select>
<br/>
Name<input name="name" type="text">
<br/>
Email<input name="email" type="text">
<br/>
Confirm Email<input name="emailc" type="text">
<br/>
Telephone<input name="phone" type="text">
<br/>
Subject<input name="subject" type="text">
<br/>
Message<textarea name="emailbody"></textarea>
<br/>
<input type="submit">
</form>
PHP:
<?
$to=$_GET['query_type'];
$subject=$_GET['subject'];
$email=$_GET['emailbody'];
$headers="From: ".$_GET['email'];
$mailsend=mail($to,$subject,$email,$headers);
echo "Thank you";
?>
(I know there are elements of the form that don't pass at the moment, just began working on it )