Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - can some one help me please
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

can some one help me please

 Post Reply Post Reply
Author
makit4u View Drop Down
Newbie
Newbie
Avatar

Joined: 02 July 2003
Location: Ireland
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote makit4u Quote  Post ReplyReply Direct Link To This Post Topic: can some one help me please
    Posted: 10 July 2003 at 3:59am

I have a members area that uses the script found on this site for mebers login.

To add a user to the database one has to do this by hand. I want to do a page that lets users add ther own name and details to the database from a submit button.

The database is called users

the table is tblusers

the fields are userid and password

Any help on this Please.  Cut and paste would be good.



Edited by makit4u
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2003 at 5:13pm

here is a code... but use at your own risk

dim dsn
dim Conn
dsn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("./users.mdb")
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open dsn

dim RS
dim SQL
Set RS = Server.CreateObject("ADODB.Recordset")
SQL = "SELECT * from tblusers"
RS.Open SQL, Conn, 1, 3

RS.AddNew
RS.Fields("userid") = Request.Form("userid")
RS.Fields("password") = Request.Form("password")
RS.Update
RS.close

Conn.close
Set Conn = Nothing



Edited by zMaestro
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2003 at 5:15pm
i think u will need another form to change (update) data from it, and a forget password form too.. and also code to check if the user name exists or not... i don't know if you want all this or just this code.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.