Membership ASP

They have: 5,633 posts

Joined: Jan 1970

hello,

I am looking for pre-made ASP's/Database which allow visitors to sign up. Right now just sign up is all I need (no shopping cart or anything like that). Just to sign up, the data be inputted to a database and allow them to sign back in / alter their info as they please.
I check ASPin.com but the closest script I could find was one where the admin had to add users.

Thanks
Ravu

------------------
Lyricsh.com
Finding The Lyrics to Your Favorite Songs.

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Ravi,

This is a relatively simple thing to do. Just make a simple html form being sure to name all the input fields accordingly. Then make a handler page using an ASP file that will serve as the form action:

Name = Request.Form("Name")
Age = Request.Form("Age") etc..

Once you've validated all your input and are ready to insert it into the table then you would do something like this (using ADO):

'---Make your ADO connection
Set Conn = Server.CreateObject("ADODB.Connection")

'---Create the record
Set RSSignup = Server.CreateObject("ADODB.Recordset")

'---Pass your authentication
Conn.Open "DSN=YourDB DSN;UID=YourID;PWD=YourPassword"

'---Set connection type, open and add new record
RSSignup.ActiveConnection = Conn
RSSignup.CursorType = 3
RSSignup.LockType = 2
RSSignup.Source = "YourTableName"
RSSignup.Open
RSSignup.AddNew

'---All fields you're saving go here
RSSignup("Name") = Name
RSSignup("Age") = Age

'---Final Update of record, move cursor back to beginning of database and close
RSSignup.Update
RSSignup.MoveFirst
RSSignup.Close

'---Set connections to nothing to free memory
Set RSSignup = nothing
Conn.Close
Set Conn = nothing

You'll have to make sure that all fields that you're going to save to your database have been validated before you save them. You'll also have to create the corresponding table that is going to hold all these values in your database.

I hope that's not to confusing

Regards,
Peter J. Boettcher

PJ | Are we there yet?
pjboettcher.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.