One registration page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Mcadieux
Forum Newbie
Posts: 2
Joined: Wed Dec 29, 2004 9:23 pm

One registration page

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

why not have one centralized database and have each program gather credentials from that db?
Mcadieux
Forum Newbie
Posts: 2
Joined: Wed Dec 29, 2004 9:23 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

phpbb2 uses md5 to "encrypt" the password... in all probability, so does the others.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.
dreamline
Forum Contributor
Posts: 158
Joined: Fri May 28, 2004 2:37 am

Post 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
Post Reply