Steve Cosh wrote on 21 nov 2005 in comp.lang.javascript
:
Ive got a javascript variable called totScore that i need to pass to
an asp variable in an asp page so i can then write this out to my
database.
<form onsubmit='this.totScorefield.value=totScore'
method='post'>
<input type='hidden' name='totScorefield'>
<input type='submit' value='send totScore to server'>
</form>
and then in ASP on the [same] receiving page:
totScore = request.form("totScore")
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)