Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HELP:Code for reseting form after submission

    Hello,

    I need a simple code to reset a form after submission.

    I already have a validation code, but after the submission is done I need the form to be reseted or cleared, but I do not know the Javascript code for it.
    Can somebody help me?

    I really need that!Thanks

  • #2
    New Coder
    Join Date
    Apr 2006
    Location
    Tadley, UK
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Maybe do an onload to sort out the contact form? It depends what you code is like, care to post it?

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Once the submitted form is processed, redirect to the form page. Do this on the server-side not on client-side.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #4
    New Coder
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello thanks for your reply, instead of reseting it I tried a different solution (on submit go to url ) but I don't know why when I do this it automatically goes to that URL I defined and does not validate the form inspite of the order that I put it, and the form is also not sent to my mail email adress... I'm using Dreamweaver. The code, well... i'm posting the part I have at the moment and is working that is:

    - Is beeing send to my email
    - The form is beeing validated
    __________________ WHAT I NEED ___________

    I need that it also goes to an URL after validating and after sending it to my email. Can you help me with that code?

    What I have so far:

    <form action="mailtoress@avilajet.com" method="post" name="form1" onSubmit="MM_validateForm('Apelido/Nome','','R','Tel Trabalho','','R','Telem&oacute;vel','','R','E-mail','','R','Morada','','R','localidade1','','R','Titulo meio','','R','Morada meio','','R','localidade2','','R');return document.MM_returnValue">


    Now I need that after this the browers goes to URL: http://www.avilajet.com/trofeu/obrigado.htm


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •