|
lowrykun
|
 |
« Reply #1 on: September 09, 2003, 03:31:01 pm » |
|
If you are only adding information to the database when the user joins, like you mentioned, the date, then there are four steps:
1. Modify the database tables: If you don't know how, check the mysql.org website for syntax. Something like "alter table users add date date"
2. Alter the function: I wanted to store a realname, email address and url. you need to send those to your function:
functions.php: function newUser($login, $password, $realname, $email,$url) {
and also where it's called:
join.php: newUser($HTTP_POST_VARS["login"], $HTTP_POST_VARS["password"], $HTTP_POST_VARS["realname"], $HTTP_POST_VARS["email"], $HTTP_POST_VARS["url"]);
3. Modify the form that is collecting the data: This is in the bottom of join.php
4. Modify the "insert into users" statement in functions.php:
functions.php: "INSERT INTO users (login, password, realname, email, url) VALUES('$login', password('$password'), '$realname', '$email', '$url')"
Using this, you should be able to easily extent the SimpleAuth framework.
jason
|