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

    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    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
    Posts
    14,453
    Rep Power
    4539
    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
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo