getting variables from html

Results 1 to 2 of 2

Thread: getting variables from html

  1. #1
    yls Guest

    Default getting variables from html

    Hi, I have two files. One is test.html and the other is testrespond.asp. What i want to do is to pass the variables from test.html to testrespond.asp. Is appending it to the querystring the only way? for example, <BR><BR>in test.html i assign id=23 then do href="testrespond.asp?id=23, and in testrespond.asp i do a request.querystring("id")<BR><BR>Any comments

  2. #2
    Ksn Murthy Guest

    Default RE: getting variables from html

    hi,<BR><BR>instead of appending as querystring u can do as follows:<BR><BR>1) in ur html file give as follows<BR> &#060;input type="hidden" name="id" value="23"&#062; between form tags<BR>2)then u can access that value in ur asp page as<BR> request.form("id")<BR><BR>i hope it is clear !!

Posting Permissions

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