Dear All,
This is my first post on the forum and I'm pretty much a novice with PHP, so please humour me....
Ok, I have a totally HTML website with a contact form on every page.
All of my usual form-processing scripts won't process the form as my host (www.streamline.net) require that an 'email from' field is specified (i.e. my email address from them, so that they know that your form isn't processing spam etc).
This may sound pretty straightforward, but I've spent 2 days trying the most obvious solutions, which still haven't worked. The customer support from the host has been utterly laughable - I appreciate they aren't there to support millions of scripts...however - they offer an 'example php form processor script on their help pages. This didn't work originally, but I've since got it to work. However, when a form is submitted, the actual body of the email message that arrives will only display one form field and I can't work out how tohave all 6 or 7 form fields displayed on the same form field. Below is the html form;
<form action="********.php">
<p>Name *<br />
<input name="name" type="text" size="22"/>
<br />
Tel. Number *<br />
<input name="number" type="text" size="22"/><br />
Email *<br />
<input name="email" type="text" size="22"/><br />
Comments / Nature of Enquiry<br />
<textarea name="message" cols="25" rows="3"></textarea>
<br />
<br />
<input type="submit"/>
</form>
and the php script is....;
<?php
mail("***@********.co.uk", "Email Subject Line",
$REQUEST[message], "From: $REQUEST[email]",
"-f*@*********.co.uk".$_REQUEST[email]);
header( "Location: http://www.*************.co.uk/thankyou.html" );
?>
The above PHP will just display the 'message' field.............any ideas how I can refer to the other ones within the same email?
Any advice massively appreciated...
Cheers
Bill