L
Luke - eat.lemons
Hi,
I have this function:
<script type="text/javascript">
function disp_prompt() {
var reqid=prompt("Please enter the membership ID number","")
if (reqid!=null && reqid!="") {
reqid=reqid
}
}
</script>
That produces a prompt to prompt for a number, how can i return the
value (reqid) back to ASP so i can then use it within ASP for database
querys? This has to be very simple and just a pop-up box to ask for the
number and return it back for processing.
Ive tried this with no success.
<%
%snip%
response.write "<script>javascript:disp_prompt()</script>"
TidF=reqid
TidFi=INT(TidF)
%snip%
strSQL = "SELECT [FIRST NAME] AS fn, SURNAME AS sn, PHOTO AS
ph, [ID] AS idn FROM MEMBERS WHERE [ID] = "&TidFi&" "
%snip%
%>
Any light on this would be great thanks!
Luke.
I have this function:
<script type="text/javascript">
function disp_prompt() {
var reqid=prompt("Please enter the membership ID number","")
if (reqid!=null && reqid!="") {
reqid=reqid
}
}
</script>
That produces a prompt to prompt for a number, how can i return the
value (reqid) back to ASP so i can then use it within ASP for database
querys? This has to be very simple and just a pop-up box to ask for the
number and return it back for processing.
Ive tried this with no success.
<%
%snip%
response.write "<script>javascript:disp_prompt()</script>"
TidF=reqid
TidFi=INT(TidF)
%snip%
strSQL = "SELECT [FIRST NAME] AS fn, SURNAME AS sn, PHOTO AS
ph, [ID] AS idn FROM MEMBERS WHERE [ID] = "&TidFi&" "
%snip%
%>
Any light on this would be great thanks!
Luke.