auto submit form

Posted on 2006-04-20
Last Modified: 2010-04-09
how to auto submit form when someone opens my test.html page, it should be redirected to test123.cgi

<form name=form1 action=test123.cgi method=post>
<input type = text name=username value="john">
Question by:perlperl
    LVL 37

    Accepted Solution

    Hi, put this in HEAD section..

    <META HTTP-EQUIV="refresh" CONTENT="0;url=test123.cgi">

    It will automatically redirect anyone visiting test.html page to test123.cgi

    If this is not what you want, please inform.

    LVL 15

    Expert Comment

    Or you could use Javascript by using the following in your <body> tag

    <body onload="document.form1.submit()">

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now