Hello, Im having a little problem for submitting a form. Basically the form has only one <input> element Where the user will put a number.
Below the from, I have several links each having specific querystrings generated from the DB. When the user click on any hyperlink, I want to submit the form, carrying the value to the next page + the querystrings.
Ive tried a simple example as the current page Im working on looks confusing with all the code.
Here's part of the example:
But nothing happens and the "Error on page" message appears in IE ststusbar. When clicking on error details, the error seems to be on the <a href... linke on character 65; i.e, param1.
Is there something wrong in the hyperlink?
Thank you very much for any help.
Below the from, I have several links each having specific querystrings generated from the DB. When the user click on any hyperlink, I want to submit the form, carrying the value to the next page + the querystrings.
Ive tried a simple example as the current page Im working on looks confusing with all the code.
Here's part of the example:
Code:
<form name="frmPost" method="POST" action="display.asp">
<input type="text" name="txtName">
</form>
<p>
<a href="#" onclick="document.frmPost.action='display.asp?param1=hello¶m2=world';frmPost.Submit();">Submit form</a>
But nothing happens and the "Error on page" message appears in IE ststusbar. When clicking on error details, the error seems to be on the <a href... linke on character 65; i.e, param1.
Is there something wrong in the hyperlink?
Thank you very much for any help.