The code in the script tag is running on the *client*. The code running between the <%%> (asp) is running on the *server*. You can't just transfer the variables like that. To send the value to the server you must either:
- Create a form, add the value to one of the fields on the form and POST the form
- Add it to a querystring (GET) and make a new request to the server.
There are other options but these are the most straightforward. I can provide further details.
regards
David Cameron
|