hi

i have an asp page, i am trying to capture an email address using a window alert and use it as the recipient.

the code is below, the message alert is not appearing and also im not sure if i am using the value correctly.

would appreciate some help

thanks



Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> 

<body>

<script type="text/javascript">
var uremail=window.prompt("Please enter your email address:")
</script>

<% 

Set myMail=CreateObject("CDO.Message")
myMail.Subject= "London Heathrow Cars - Email Quote"
myMail.From="me@gmail.com"
myMail.To= uremail


HTMLBody = "my html email"

myMail.HTMLBody = HTMLBody
myMail.Send

set myMail=Nothing
%>

</body>

</html>