Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


auto submit form

Posted on 2006-04-20
Medium Priority
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

Harisha M G earned 2000 total points
ID: 16501252
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

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

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

571 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