PDA

Click to See Complete Forum and Search --> : QueryString


joey o.
Nov 5th, 2000, 06:33 PM
Hi,
I'm using VBScript. I've got a bunch of hyperlinks and I want to pass all the info in the form whenever I click one. I don't want to list all the available info on the page seperately. I want my hyperlink to do what Submit does. How do I make this happen? I'm using VBScript.

Nov 9th, 2000, 11:35 AM
One solution is to give your form a name and submit it with JavaScript when the link is clicked like so:

<FORM NAME="frmWhatever" ACTION="whatever.asp" METHOD="POST">

<INPUT NAME="blah">
<!-- Etc, etc... -->

<P><A HREF="doesntmatter.htm" onClick="frmWhatever.submit();return false;">Link that submits</A></P>

</FORM>

The "return false;" part prevents the link from executing...that's why the URL for the link doesn't matter.

This JavaScript should work with IE or NS.

Does this help?

Paul