View Single Post
  #1 (permalink)  
Old Apr 17th, 2008, 16:03
dbh21 dbh21 is offline
New Member
Join Date: Apr 2008
Location: london
Age: 26
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Angry > Please Help With Simple Php Contact Form!

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:

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

Code: Select all
<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>
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 *REMOVED* 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

Last edited by saltedm8; Apr 17th, 2008 at 18:44. Reason: added [code] tags + email removed, you can add this yourself later
Reply With Quote