|
|
|
|
|
| | |
| |
Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
Re: Passing information using javascript from client to server |
|
From: |
Shailesh Lolam |
|
Date: |
5/8/2000 1:00:58 AM |
|
IP: |
203.94.239.7 |
Hi there,
Try out this it will work,this is your code modified only the "theage" variable as been declared.
.........
<script language="javascript">
function doit(){
var theaege;
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
%>
If still u have problem feel free to mail me.
GOOD LUCK,
Shailesh Lolam.
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|