Page 1 of 1

Trying to create a universal registration form.

Posted: Sun Jul 19, 2009 9:43 pm
by baits1
Hi all, figured i would make my first post here a good one. Here is what i am trying to accomplish.

I have 12 databases, 11 of which are running php scripts, and the last one that is just a general database for a program im developing.

I need to universalize the registration, rather than having to register 12 times, because lets face it, that would be very boring...So i need it done where i can make a form with only the resuired fields, and have it take the information from that form and submit it into each database one by one, then send a confirmation email to the client.

Pretty simple right? I thought so.... Until i ran into MD5(hash)/SaltedMD5 and Plain english passwords. How can i go about finding out the md5 (seed?), md5 encryption type, or whatever so it will take the infomration a d put it in there properly.

Hope someone out there can understand this. Thanks!

Re: Trying to create a universal registration form.

Posted: Sun Jul 19, 2009 9:54 pm
by Benjamin
Have you considered storing all registration data in a single database?

Re: Trying to create a universal registration form.

Posted: Sun Jul 19, 2009 10:26 pm
by baits1
yes i actualyl had everythign in one database however im using multiple php scripts and they all have there own database structure and it was just easier to keep them all seperate plus it will lower the load since i can actually have each one on a different server eventually. As for right now i have the form created, i have the buttons ready, the form reset button working, now what i need to do is make the check username button work ( to check the mani database to see if the username is available) and the register button, but im still stuck on teh password issue. Any way to find out what the scripts use and set this up somehow on a register2.php or something wher it will go DB to DB putting the information in? With the passwords encrypted properly?

Re: Trying to create a universal registration form.

Posted: Sat Jul 25, 2009 1:08 am
by kaisellgren
Here's a simple example. If we have three websites A, B and C each containing a login form and a registration form, how do we pull these all together? It's simple. You have one database that holds the user details, and each registration form connects to that database to register new accounts and each login form also connect to the same database to see if the login credentials were correct. There's no need for complicating this. It works as simple as that. When I integrated one site to phpBB, the site login form connected to phpBB's database (which was the same as the site's), and queried the login credentials (which was not that easy though).

I am not sure what is your current problem, but I think it has to do with inconsistency. All scripts must hash and handle the login credentials the same way for this system to work. For example, I had to learn and see how phpBB hashed passwords.