www.webdeveloper.com
Results 1 to 9 of 9

Thread: 2 questions about HTML forms

  1. #1
    Join Date
    Dec 2008
    Posts
    35

    Question 2 questions about HTML forms

    Have have 2 questions about HTML forms.

    There first is there is a is a 3 letter term for how thing are transferred via a form. CQI, SEQ or something like that sorry that the question the question is so vague.

    The second half is that when I'm establishing a a form action:
    Code:
    <form method="post" action="/submitform.aspx" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
    And I would like that after that form submits the information that the user to a page of my choosing does any one know how to set that up.

    Thank you in advance for any help

    JT

  2. #2
    Join Date
    Sep 2009
    Posts
    11
    If I fully understand your question, I believe you would add a link to submitform.aspx for the user to click to go where you want/need them to.

    Or, you could automatically redirect them after the form has been submitted with javascript. I'm not that great with js btw so you'll have to bear with me, but I think it goes something like this:

    Between <head> tags:
    <script language="JavaScript">
    var time = null
    function move() {
    window.location = 'http://where-you-want-them-to-go'
    }
    </script>
    Between <body> tags:
    <body onload="timer=setTimeout('move()',2000)">
    Where 2000 = 2 seconds

  3. #3
    Join Date
    Dec 2008
    Posts
    35

    Question Thx for the quick responce.

    Thx u for the quick responce adderlite. I think I need to keep the

    Code:
    action="/submitform.aspx"
    in there becasue thats the submit program that we are using to pass along form information.

    Sidenote: that program is involed in forum submission that program has a 3 letter name that I can't remember at all so if you know that plz feel free to share.

    I will give the JS a try in the head. stand by for results

  4. #4
    Join Date
    Sep 2009
    Posts
    11
    Right, but you might try adding the js INTO the aspx file. Idk though. My line of experience with aspx is slim, so I might just be babbling.

  5. #5
    Join Date
    Dec 2008
    Posts
    35

    Arrow JS page redirect. Instead of going back 2 states.

    Yep I've there is a sever side page that the user is bounced to when they press the submit button. Its the

    HTML Code:
    action="/submitform.aspx"
    So I'm inside the submitform.aspx file ant this code looks like its in charge of where the user is sent once they the CGI (<=Found out the name, that was driving me nutz)
    is sent.

    HTML Code:
    <script type="text/javascript">
    function goBack() {
    	history.go(-2);
    }
    
    function waitSeconds() {
    
    // wait time is in milliseconds, currently set for 3 seconds
    setTimeout("goBack()", 3000);
    }
    </script>
    </head>
    <body onload="waitSeconds()">
    Thank you! We will receive your message shortly and reply if applicable.
    <% End If %>
    </body>
    Now there is alot of stuff that is one that page that is WAYYYyyyy over my head but this part that I have put up there looks like some JS that pretty much send the user back to steps in there history. Looking at that code to you know a way send them to a spicific URL?

    Thx for the fast assist by the way.

    JT

  6. #6
    Join Date
    Sep 2009
    Posts
    11
    Try replacing the script between the <head> tags with this:
    <script type="text/javascript">
    var time = null
    function move() {
    window.location = 'http://where-you-want-them-to-go'
    }

    function waitSeconds() {

    // wait time is in milliseconds, currently set for 3 seconds
    setTimeout("move()", 3000);
    }
    </script>
    And leave the script in the <body> tags the same.

    Be sure to replace http://where-you-want-them-to-go with the url you're trying to send them to.
    Last edited by adderlite; 09-08-2009 at 12:35 PM.

  7. #7
    Join Date
    Dec 2008
    Posts
    35
    ThxU so much for the help I enedup up using this script:
    HTML Code:
    <script type="text/javascript">
    function goToURL() {
    	window.location="/foundation/hankwilliams/purchase/"
    }
    function waitSeconds() {
    setTimeout("goToURL()", 3000);
    }
    </script>
    </head>
    <body onload="waitSeconds()">
    Thank you! We will receive your message shortly and reply if applicable.
    <&#37; End If %>
    </body>
    </html>
    Once again your the greatest and thx from the help from start to finish

  8. #8
    Join Date
    Sep 2009
    Posts
    11
    No problem. Glad I could help.

  9. #9
    Join Date
    Sep 2009
    Posts
    1
    there is a 3 letter term for how thing are transferred via a form so that is it. thanks for the code..


    _________________
    Indianapolis web design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles