Link to home
Start Free TrialLog in
Avatar of ryderjam
ryderjam

asked on

Passing input to another asp page(array)

I would like to display a list of links from a sql table and have the user be able to click a radio button for Live or not live and then provide a comment on that link.

the issue is I dont want to do just one at a time I would like to list multiple links on one page and be able to comment on the same page.
Avatar of ryderjam
ryderjam

ASKER

My initial thoughts are that I could load the record number, the link desc into an array and set up new arrays for the radio button and the comment field but then how do I pass that in form method=post where the receiving page would update the records with their correct responses?
use Session variables to contain the value of the arrays.

e.g.
Dim record_no(10)
Dim link_desc(10)

record_no(1) = 20
record_no(2) = 10
......


link_desc(1) = "Yahoo!"
link_desc(2) = "Experts-Exchange!"
......


Session("record_no") = record_no
Session("link_desc") = link_desc



Then in the others page, when you want to retrieve the array values, you need to:

dim record_no
dim link_desc (note here don't declare it as array)

record_no = Session("record_no")
link_desc = Session("link_desc")

Hope the above helps

For more information:

You can go to the link here
http://www.asptoday.com/articles/19990820.htm
edwardpoon:

Ok maybe thats a better way to ask the question, how do I populate that array with inputs?

Because remeber I will be updating each record with the provided response.
(ie live (yes/no) and the text comment)

for example i can not pass the following because it wont work:

response.write("<form method=post action=page2.asp>"&_

rs("LinkDesc")&"&nbsp;Live <input name=stat(x) type=radio value=1>Yes <input name=stat(x) type=radio value=0>No  <input name=comment(x) type=text size=25>




ASKER CERTIFIED SOLUTION
Avatar of Keeth
Keeth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial