Please Help With Simple Php Contact Form!

dbh21

New Member
Hi All,

I'm sure you get this all a lot but I'm struggling to get a simple contact form to work. Here's the html side of things:

------------------------------------------------------------------------------------------------------------------

<form action="sendmail.php" method="post" name="ContactForm" id="ContactForm">
<div class="col1">
<div class="row">
<input name="name" type="text" class="input" id="name" value="Name:" />
</div>
<div class="row">
<input name="email" type="text" class="input" id="email" value="Email:" />
</div>
</div>
<div class="col2">
<div class="row1">
<textarea name="message" cols="1" rows="1" id="message">Message:</textarea>
<br />
<div class="div">
<input type="submit" name="submit" value="Submit" class="submit-button" />
</div>


------------------------------------------------------------------------------------------------------------------

which can be found at: http://www.stleonardshouse.co.uk/contact.html

now I have tried a hundred different php scrips to get this SIMPLE form to work, with no luck. I need the users name, email and message to be sent to email of [email protected] with the subject of 'Enquiry from St Leonard's House Website. If they dont enter an email I want it to display error.html and if its successful I need it to display thanks.html or something along those lines. Thats it! I'm not really worried about too much validation or spam protection or anything too complex, I just need something simple.

I was wondering if my server had anything to do with it and found this page on my hosts tech support pages:

http://www.fasthosts.co.uk/knowledge-base/?article_id=70


I do not have much experience with PHP scripting and I know someone out there could clear up this confusion for me in minutes with a simple script that I can upload and get this thing working once and for all!

Many thanks in advance,
Daniel
:confused:
 
Top