This is actually a question. I have a javascript form that does not function, as in it's just the skeleton with the nice slide down, and i have a form.php i want to link to to actually send the mail through it. BUT, the javascript form just says thanks and closes without refreshing the page, while if i link it to the php, the php wants to print something after mail($sendMail, $subject, $message, $header); Code (markup): and refreshes the page. Is there any way to block it from refreshing? I'm only doint this because i don't know any way of sending the mail through the javascript. The javascript form i want to use is this one: http://designshack.co.uk/articles/javascript/creating-a-slide-in-jquery-contact-form
Javascript can't send email. For a complete popup form that can send email, see the page below: Popup contact form
Thank you, prasanthmj, but my form slides down, it's not a popup. So if javascript can't send mails, then my question stand, how to make the form send the mail through the php script without refresing the page or poping any other confirmation message?