June 30th, 2003, 04:41 PM
-
How to pass variables from javascript on one html page to another asp page?
I'm trying to pass more than one variable from javascript to another asp page. I used Array to transfer multiple vars into one var (named "words"). Here is the relevant code I tried:
<SCRIPT language=Javascript>
<!--
function query()
{
var words=" ";
for (i=0; i<=10; i++)
{
{if (document.pref_form.elements[i].checked)
words = words + " + AND + " + prefArray[i];}
}
How can I pass the var "words" to another asp page (say, search.asp)? In that search page, I want to use the received words to conduct a key word search. Please help me!!! Thax a lot!
-
You'll probably need to look into some how getting the varible over via the POST method.... ASP isn't going to help you because All ASP stuff happens on the server before the page reaches the client.. and then all JavaScript stuff is done on the client side... sorry i can't really help