Click to See Complete Forum and Search --> : mailing list - on enter ( no button)
kovan
Oct 20th, 2000, 06:54 AM
i have made a so called mailing list option
where the user enters their email, and when they hit ENTER
i want to add the email addy to a table (just need help with how to have the content sent to another asp VIA enter)
thank you
Serge
Oct 20th, 2000, 04:26 PM
That's sounds easy enough:
First Page (called Email.asp)
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<SCRIPT language=JavaScript>
function CheckEnter()
{
if (window.event.keyCode == 13)
{
location.href="Test.asp?txtEmail=" + txtEmail.value;
}
}
</SCRIPT>
<BODY>
<P>*</P>
<INPUT name=txtEmail OnKeyPress="CheckEnter()">
</BODY>
</HTML>
Second Page (called Test.asp)
<HTML>
<BODY>
<%Response.Write "Email from textbox " & Request.QueryString("txtEmail")%>
</BODY>
</HTML>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.