Results 1 to 2 of 2

Thread: QueryString

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    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.

  2. #2
    Guest
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width