Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Submitting a Form (not onLoad)

Status
Not open for further replies.

nialley

Programmer
Joined
Mar 16, 2006
Messages
1
Location
IE
Hey guys,

I am trying to find a way to submit a form automatically using javascript. This is what I thought would work but it doesn't seem to submit. This page fits into a header and footer template so this page would no access to the body tag.

---

<form name="hidden_form" action="search.results_chemicals" method="post">
<input type="hidden" name="p_query" value="select * from chemicals">
</form>
<SCRIPT>
document.forms['hidden_form'].submit();
</SCRIPT>

---

Any help would be really appreciated,
Niall
 
The action is supposed to be the name of the page that the form is submitted to, but yours doesn't appear to have an of the standard .htm(l), .php, .asp, .pl, .cfm extensions. What is the name of the page with the script that processes this information?

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top