www.webdeveloper.com
Results 1 to 6 of 6

Thread: Need Help With ASP Login Script

  1. #1
    Join Date
    Mar 2007
    Location
    Norn Iron
    Posts
    5

    Need Help With ASP Login Script

    Hi guys im setting up a members only section for my website and ive got the register form working fine (well the user can enter a username and password into a database) but now i dont know how to enable the users to log in with this username and password. im new to asp, only been doing it a few weeks so i dont really know what im doing. Here is the code ive used to store the name and password.

    <B>Your Username and Password Has Been Stored</B>
    <% Response.Buffer=True %>
    <html>
    <head>
    <title>Entry Added</title>
    </head>
    <body>


    <%
    Dim rs,conn
    set conn=Server.CreateObject("ADODB.connection")
    set rs=Server.CreateObject("ADODB.Recordset")
    conn.Provider="Microsoft.Jet.OLEDB.4.0"
    conn.Open(Server.Mappath("register.mdb"))

    au=request("new_username")
    ap=request("new_password")
    ae=request("new_email")
    an=request("new_number")
    sqlstr="insert into members values('" &au& "','"&ap& "','" &ae&"','" &an& "')"
    rs.Open sqlstr,conn
    set rs=Nothing
    %>

    </body>
    </html>

  2. #2
    Join Date
    Mar 2007
    Location
    Norn Iron
    Posts
    5
    any ideas guys?

  3. #3
    Join Date
    Mar 2007
    Location
    Norn Iron
    Posts
    5
    please lol

  4. #4
    Join Date
    Apr 2007
    Posts
    6

    hi

    please can anyone tell me how can a form information at an email address using HTMl,JavaScript and ASP

  5. #5
    Join Date
    Apr 2007
    Posts
    6
    plss telle me how can i create a form in which we send form information on an email address?????using HTML,JAVASCRIPT and ASP

  6. #6
    Join Date
    Jan 2004
    Posts
    3
    You should try asp mail. Your host probably has a feature sililar to this as a service. Maybe some sample scripts:

    Here is an example:


    Code:
    <% @LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head> 
    <body> 
    
    <% 
    Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
    Mail.FromName   = "1&1 Test"
    Mail.FromAddress= Request.Form("email")
    Mail.RemoteHost = "mrelay.perfora.net" ' The mail server you have to use with Asp Mail
    Mail.AddRecipient "ABCDE Company", "hello@justonedomain.com"
    Mail.Subject    = "Website - Info Request"
    Mail.BodyText   = Request.Form("info")
    if Mail.SendMail then
     Response.Write "Your mail has already been sent..."
    else
     Response.Write "Mail send failure. Error was " & Mail.Response
    end if 
    %> 
    
    <body> 
    <p>Thank You!!<br>
    </body>
    </html>
              
    A basic version of a feedback form:
    
                
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>ASP Mail Test page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body background="">
    
    <table width="100%" border="0" align="center">
      <tr class="medium"> 
        <td width="54%" align="center" valign="top"> 
         <form onSubmit="return ValidateForm()" method="post" action="forminfo.asp">
           Email Address:: <input name="email" type="text" id="email" size="41"></p>
           Comments:: <textarea name="info" cols="35" rows="10"></textarea></p>
           <input class="fancybut" type="submit" name="Submit" value="Submit Form">
           <input class="fancybut" type="reset" name="Submit2" value="Reset Form"></p>
          </form></td>
        <td width="16%" align="right" valign="top"></td>
      </tr>
      </table>
    </body>
    </html>

    Is this waht you're looking for?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles