Hi,
I'm having trouble with using a Javascript value in ASP. In my asp page I have a form:
<form name="form">
<input type="text" name="country">
<input type="submit" name="submit" onclick="return cmdSubmit_onclick()">
</form>
On top of my asp page I have a Javascript function link this:
function cmdSubmit_onclick() {
ctry = document.form.country.value
if (ctry!="")
{
<% strSQL = "SELECT Country FROM SC WHERE Country = " &ctry%>
}
}
My question is how do I use the value of ctry in ASP?
Really appreciate if someone could help me.
Thanks