PDA

Click to See Complete Forum and Search --> : Posting HTML form contents using a hyperlink


Oliver
Jun 12th, 2000, 03:40 AM
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]

jdavison
Jun 16th, 2000, 04:12 AM
Cant you just use CDONTS?

jdavison
Jun 16th, 2000, 04:14 AM
Sorry, Dum response. Some reason I got it in my head that you were emailing it.