php form not returning anything to user when click Submit

Discussion in 'Programming' started by Abh, May 12, 2010.

  1. #1
    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
     
    Abh, May 12, 2010 IP
  2. prasanthmj

    prasanthmj Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #2
    prasanthmj, May 12, 2010 IP
  3. Abh

    Abh Active Member

    Messages:
    162
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #3
    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?
     
    Abh, May 12, 2010 IP