Results 1 to 2 of 2

Thread: mailing list - on enter ( no button)

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    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

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    That's sounds easy enough:

    First Page (called Email.asp)
    Code:
    <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)
    Code:
    <HTML>
    <BODY>
    
    <%Response.Write "Email from textbox " & Request.QueryString("txtEmail")%>
    
    </BODY>
    </HTML>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width