Page 1 of 1

One registration page

Posted: Wed Dec 29, 2004 9:32 pm
by Mcadieux
Hi,
Hopefully someone can help me out with this since I've been going nuts all day. I have one registration form that collects all the users information. It sends this form to a php script. I now need to take all those variables and send them, to 4 other .php scripts. (changing the names of the variables for each script. So is there a way to get a .php script to send the variables just like a form would? I have "Noahs Classifieds", "PHPauction", "phpBB2", and my own login on my site. I am trying to create one registration page for all of them. Hopefully I am going in the right direction if not could someone please point me in it.

Matt Cadieux

Posted: Wed Dec 29, 2004 9:41 pm
by feyd
[php_man]curl[/php_man] is an option... so is using [php_man]include[/php_man], however it may be harder to work with include.

General Discussion, isn't exactly the best place for this.. so I've moved it to php code.

Posted: Wed Dec 29, 2004 11:33 pm
by d3ad1ysp0rk
why not have one centralized database and have each program gather credentials from that db?

Posted: Wed Dec 29, 2004 11:59 pm
by Mcadieux
I am fairly new to PHP and don't want to hack the programs that much. I could send all my data to each of the My_SQL databases, but I can't figure out how they encrypt the passwords. This is driving me nuts since it is the last thing that is keeping me from launching my website

Posted: Thu Dec 30, 2004 12:11 am
by feyd
phpbb2 uses md5 to "encrypt" the password... in all probability, so does the others.

Posted: Thu Dec 30, 2004 1:24 am
by timvw
btw, submitting the data to 4 different database tables.....
have you already thought about what happens if someone updates his userinfo?

i think that modding the projects to use a centralized database will be less work, and avoid redundancy.

Posted: Thu Dec 30, 2004 8:39 am
by dreamline
Include is imo the way to go... However i am running every form and script from my main index.php. Actually my index.php is the tree to decide what to do on a page.. Once you have that, all you can use is includes or requires.. :D

Ps for passwords use $encrypted=md5($password) and you have your passwords encrypted... :) However remember that if you check a user password at login, you should encrypt the pw be4 firing a query on your database... :D