Click to See Complete Forum and Search --> : Passing javascript variable to the next page
taurz
10-23-2003, 04:30 AM
Hi ...
I have an ASP page with some javascripting in it. The script forms a variable using multiple fields in the page.
Now, how can I actually pass this script from this page to the next HTML page (which is actaully an ASP page). This varibable passed should have to be inserted into a database. How can I make this variable available in the next page.
Thanx for all the help I can get.
taurz
10-23-2003, 04:32 AM
sorry .. the above message has been corrected
Hi ...
I have an ASP page with some javascripting in it. The script forms a variable using multiple fields in the page.
Now, how can I actually pass this VARIABLE from this page to the next HTML page (which is actaully an ASP page). This varibable passed should have to be inserted into a database. How can I make this variable available in the next page.
Thanx for all the help I can get.
sorry abt that....!!!
pelegk1
10-23-2003, 05:07 AM
not js Q!
second take a simple search in google or in the search jhere and u will get the answeres
clairec666
10-23-2003, 05:53 AM
The only ways I can currently think of are:
a) saving a cookie and retrieving the value when you open the next page
b) using a frameset
Khalid Ali
10-23-2003, 07:55 AM
There are few things you can try( all will work)
1. appaend the variable value to the next pages URL if user is taken their.
2. set the value in ASP session and check for it at the next page(I thin its the best way to pass values)
3. or as mentioned in earlier post use cookies
4. You can pass values directly to a child window
taurz
10-23-2003, 11:05 AM
how can i pass the variable on through the URL? its in the script part.
or else how is it done in ASP?