Developing a contact form and have used an open-source PHP code for the submission. The email sends without a problem and coming into my inbox, however the page is returning to the contact page and showing a blank form rather than a successful/error message in its place.
Think the code / potential problem might lie here (part of the .php form). Would someone might checking it to see if I'm missing something?
if(mail($to,$subject,$message,$headers))
header("Location:workwithme.html?msg=Thank you! I'll be in touch shortly!");
else
header("Location:workwithme.html?msg=Oops! There was an error sending you're email. You can email me direct at jason@jasonscott.me.uk");
//contact:-your-email@your-domain.com