1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Rep Power

    Multiple Scripts for Form Submission from Hyperlink

    So I am creating an ASP form that ultimately I would like to have the form submitted from a hyperlink instead of a submit button

    The html code is created using vbscript. I have done some research and found that I can submit the form from the hyperlink but I would need to use a javascript "onclick" call to submit the form data

    So ultimately my question is is it possible to use the "onclick" from inside the following vbscript and if so, what would the syntax look like to accomplish this?

    response.write"<a href=trr_main_Form.asp?nmember=" & ors2("memname") & "&nCountyOption=" & vCountyOption & "&nConsent=" & vConsent & ">" & ors2("memname")"
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    This is a client browser question, not an asp question. You should be able to use the onclick event of an element with either javascript or vbscript running in the browser.

    Comments on this post

    • sicdude agrees
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo