Submitting via a link

Results 1 to 2 of 2

Thread: Submitting via a link

  1. #1
    Join Date
    Dec 1969

    Default Submitting via a link

    I have a problem of space where I am hosting my site so I don't want to have to create 20 to 30 pages of similar content instead I want to create the pages on the fly via a database. My intention is to have the options in a menu b
    and depending on which one is pressed this then sends the information for the page to be created from the database.<BR><BR>I understand that stuff is usually sent via a SUBMIT button but I want to avoid doing this and post the information via a link on the menubar. <BR><BR>Is this possible?

  2. #2
    Join Date
    Dec 1969

    Default You can't POST...

    ...not directly. However, you could build up the querystring (mypage.asp?myvar=myvalue), or you could submit a hidden form:<BR><BR>&#060;form name="form1" action="someplace.asp" method="post"&#062;&#060;input type="hidden" name="myvar" value="myvalue"&#062;&#060;/form&#062;&#060;a href="#" onClick="document.form1.submit();"&#062;link 1&#060;/a&#062;<BR><BR>Craig.

Posting Permissions

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