|
|
|
|
|
| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Passing information using javascript from client to server |
From: |
king yang |
Date: |
5/6/2000 5:34:24 AM |
IP: |
202.106.242.231 |
A difficult problem for me,i want using javascript in client to pass information(such users age) to server asp script and add it in DB.
Details:
When user click a link a prompt box poped , after user input their age,click "ok",the info passed from client to server.(I cant do it,passing failed,the value is not what i wanted.)
Codes I using below:
.........
<script language="javascript">
function doit(){
if (prompt ("input your age",theage)){
window.location.href="submit.asp?age=" + theage
}
}
//theage is default value??null??undefined??how to get users input??
</script>
...
<form>
<input type="button" onclick="doit()" value="submit it">
</from>
...
In Server side:
<%
dim age
age = request.querystring("age")
i get age from client
%>
Any one tell me the right method??Thank you very much. |
Follow Up - Re: Passing information using javascript from client to server - Shailesh Lolam 5/8/2000 1:00:58 AM
Follow Up - Re: Passing information using javascript from client to server - Van Duong 5/19/2000 9:33:49 PM
|
|

|
|
|
|
|
|
|
|
|
|