Results 1 to 3 of 3

Thread: Posting HTML form contents using a hyperlink

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    SA
    Posts
    5

    Angry

    Thanks for the responses, however none of them work at this time.....

    I am busy writing a shopping cart using Visual Basic's webclass designer (IIS Application). I am creating the form dynamically (linked up to an event within the webclass - dynamically) and then want to submit the contents of the form using a hyperlink as opposed to a submit button.


    Here is the code:

    ........

    HERE I GENERATE THE FORM DYNAMICALLY AND LINK IT UP TO AN EVENT WITHIN THE WEBCLASS

    TagContents = TagContents & "<FORM method=""post"" action=""Shopping.ASP?WCI=Basket&amp;WCE=UpdateBasket&amp;WCU"" name=""UpdateBasket"">"

    ........

    SOME EXAMPLE LINKS THAT ARE LINKED UP TO AN EVENT WITHIN THE WEBCLASS (THE LINKS WORK 100%)

    TagContents = TagContents & "<a href=""Shopping.ASP?WCI=Basket&amp;WCE=Hyperlink1&amp;WCU"">Checkout</a> | "

    TagContents = TagContents & "<a href=""Shopping.ASP?WCI=Basket&amp;WCE=Hyperlink2&amp;WCU"">Clear Basket</a> | "


    THIS IS WHERE I WOULD LIKE TO EXECUTE THE SUBMIT CODE

    TagContents = TagContents & "<a href=""javascript:void"" onClick=""document.UpdateBasket.submit();"">Update</a>
    </font></b></P></TD></TR>"


    HERE I CLOSE THE DYNAMICALLY CREATED FORM

    TagContents = TagContents & "</FORM>"


    ...........


    Your help will be greatly appreciated.

    Yours Sincerely

    Oliver Hoppe



    [Edited by Oliver on 06-12-2000 at 05:02 PM]

  2. #2
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149

    CDONTS

    Cant you just use CDONTS?

  3. #3
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149

    DOH

    Sorry, Dum response. Some reason I got it in my head that you were emailing it.

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