After form is submitted

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Anonymous
    Members

    • Mar 2005
    • 439

    After form is submitted

    Hi,

    Is there any way for me to add a thank you page to be displayed after a visitor submits a form.

    Rgds,
    Luis
  • Pablo
    Moderator

    • May 2005
    • 507

    #2
    Yes, see my comments in this discussion:

    You can also use a client side javascript to 'catch' the OnSubmit event, but this doesn't work for every browser.

    Pablo
    Forum Moderator
    BlueVoda Spe******t

    Comment

    • Anonymous
      Members

      • Mar 2005
      • 439

      #3
      forms

      Where can I find that javscript? I dont want to replace the form I just need a way to let the visitor know that their request was processed.

      Luis

      Comment

      • Pablo
        Moderator

        • May 2005
        • 507

        #4
        This is an example of a javascript that might work:
        Code:
        <SCRIPT language=JAVASCRIPT>
        function DoRedirectEmailForm(theForm)
        {
           theForm.action = "mailto:webmaster@yourdomain.com?subject=Put the subject here";
           location.href = "thankyou.html";
           return true;
        }
        </SCRIPT>
        and change the form code to something like this:
        Code:
        <FORM name=FormName onsubmit="JavaScript:return DoRedirectEmailForm(this);" 
        method=post encType=text/plain>
        Note: You will have to use the HTML code feature of BlueVoda to make these changes. But as I said before, you probably will be much better off using a PHP script.
        Forum Moderator
        BlueVoda Spe******t

        Comment

        Working...
        X