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
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