javascript - Using variables from previous ASP page -
on first page have array defined as:
dim selection selection = array("name", "city")
on following asp page i'd call same variables i'm having hard time figuring out how. has been basic structure attempt different solutions not work, results blank because don't think i'm calling variables correctly:
dim userselect userselect = request.form("selection(0)") dim cityselect cityselect = request.form("selection(1)")
if can in vbs great, if can in javascript, awesome, i'm not sure start , appreciate help.
you have options,
or put values inside html form on first page , post second page , request.form values;
or call second page , pass values caller name (ex. page2.asp?varname=varvalue), request.querystring these values on second page;
or use session variables. ex.: session("varname")=varvalue on second page way session("varname"). example: response.write(session("varname")).
as you're using arrays, things gets complicated, bit. you've know how deal with'em.
Comments
Post a Comment