So recently I downloaded a template off the internet for the site, and it has a contact form in it but no way to set it up. After contacing the developer he linked me to a site, however, its not been all that useful as I still cannot get it to work. When I put anything in and press "Send Message" it just gives me this error: "Parse error: syntax error, unexpected T_STRING in /home/bdurodjc/public_html/Home/mail.php on line 5"
I'm unsure of what this means and what I can do to fix it. Also, the "Send Message" and "Clear Form" buttons are white and not green like they should be, I'd also like them to be on the same line but I couldn't figure out a way of doing this. Apologies for asking so much, the other thing is I don't know how to make it check that the email address is valid.
The website this is on is at: http://chocants.co.uk/Home/ and the approriate code is below.
<form action="mail.php" method="POST"> <div class="row half"> <div class="6u"> <input type="text" class="text" name="name" placeholder="Name"> </div> <div class="6u"> <input type="text" class="text" name="email" placeholder="Email"> </div> </div> <div class="row half"> <div class="12u"> <textarea name="message" placeholder="Message"></textarea> </div> </div> <div class="row"> <div class="12u"> <ul class="actions"> <li><input type="submit" class="button form" value="Send Message"><input type="reset" class="button form" value="Clear Form"></li> </ul> </div> </div> </form>
Thanks for any help :)