Preserved Topic: Getting a Value from JavaScript/Form to Server-Side Scripting |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Plano, TX |
posted 12-06-2001 18:44
If I have a value in a form that doesn't get submitted (in this case, a clock that is inside a form text field), is there a way I can get that value from the form (since it is generated from client-side JavaScripting) into my ASP server-side scripting on the following page where I need to use it? I have two forms on the submitting page, one with user info that gets submitted, and this other clock form that doesn't. And what are the best ways to get a variable/value from JavaScript to ASP? |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 12-06-2001 18:52
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-06-2001 21:42
I dunno about ASP, but I'm assuming that you can pass variables in the URL the same way you can with PHP like href="ur.asp?variable1=value1&variable2=value2". Of course, to use that you would need a javascript function that defines the link dynamically... I wouldn't wnat to type something off the cuff because it would probably be full of errors. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 12-06-2001 22:19
Can't remember the format and InI's method is probably easier. But you can create form elements dynamically as well |