Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    I have a form, and when the user clicks submit I want the user to go to a thankyou page, preferably when they click the submit button, thats what calls the page..

    Thanks in advance

  2.  

  3. #2
    Senior Member mossoi's Avatar
    Join Date
    Apr 2003
    Location
    Englandshire, United Kingdomsville y'all!
    Posts
    1,111
    Member #
    1206
    Liked
    1 times
    Code:
    <form name="form1" method="post" action="thank_you.htm">
    Of course the thank you page will also need to do something with the submitted form data!

  4. #3
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    No sorry, see the form already has an action thats why it has to be a onsubmit event.

  5. #4
    Senior Member
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    735
    Member #
    1935
    html code
    Code:
    <form name="form1" method="post" action="page.html" onSubmit="return redirPage();">
    javascript code
    Code:
    function redirPage() {
      var newPage="someOtherPage.html";
       window.location=newPage;
        return false;
     }


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:48 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com