• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Login form on my webpage??

KydLynx

Senior member
Hi. On my webpage I want to have a section in the corner to login (username/pass) , like amazon/ staples...etc.

But depending on who logs in, i want them to be taken to a certain webpage, depending on who they are.

Anyone know how to do this?
 
You would need to do this with server side scripting, like php. Your username/passwords would be stored in a DB and you would use the input to query the DB, check the credentials and then based upon their username use php to redirect them to the appropriate page. Rather simple to do if you know php, but tedious if you don't know php.
 
If people can log in, that means they will have to register first, right?

Unless you have a special list of login names, in which you can use any scripting language like PHP or ASP and do something like "if (login=='a') go to this page; else if (blah blah)"..

If the users must register, then you'll need a database like PHP/MySQL to keep track of all that.
 
Originally posted by: screw3d
If the users must register, then you'll need a database like PHP/MySQL to keep track of all that.

PHP is not a database. And you do not need an SQL database to keep track of a few usernames.
 
Well, I am willing to pay for some sort of program to get this set up.
Im running a unix server that supports PHP.
Or if anyone knows any simple script that checks a form...and like forwards a person to a cetain webpage depeding on who logs in. =)

that would work 😀
 
Originally posted by: KydLynx
Well, I am willing to pay for some sort of program to get this set up.
Im running a unix server that supports PHP.
Or if anyone knows any simple script that checks a form...and like forwards a person to a cetain webpage depeding on who logs in. =)

that would work 😀

PM me and I might be able to set you up with something 🙂

ALso, how many people is this going to be for? I could just do it with some if's if it is under 5 or so
 
Originally posted by: notfred
Originally posted by: screw3d
If the users must register, then you'll need a database like PHP/MySQL to keep track of all that.

PHP is not a database. And you do not need an SQL database to keep track of a few usernames.

i know that. we have no idea how many users he's supporting so MySQL gives him room to grow
 
Originally posted by: KydLynx
yeah, its gonna have to be for more than 5 users.
big clients.

Yeah, it shouldn't be too hard to develop it, but I would take some time. You might want to post it on some of the pay for code sites and get people to make an offer. It would probably take about 2-3 hours to code it and maybe a bit longer with an admin interface. Judging by the fact you didn't know how to do this, I wouldn't recomend you doing it yourself (no offense). Like I said, maybe one of those open projects sites.

Personaly, I think if it was only for a limited amount of users (<100) you could do it with XML or some other flat file and avoid the database thing all together, but after that you want to use something like SQL for speed. If you do use a flat file, MAKE SURE YOU USE HASHES AND PUT IT IN A NON-WEB ACCESSABLE PLACE.
 
Originally posted by: amdfanboy
Originally posted by: KydLynx
yeah, its gonna have to be for more than 5 users.
big clients.

Yeah, it shouldn't be too hard to develop it, but I would take some time. You might want to post it on some of the pay for code sites and get people to make an offer. It would probably take about 2-3 hours to code it and maybe a bit longer with an admin interface. Judging by the fact you didn't know how to do this, I wouldn't recomend you doing it yourself (no offense). Like I said, maybe one of those open projects sites.

Personaly, I think if it was only for a limited amount of users (<100) you could do it with XML or some other flat file and avoid the database thing all together, but after that you want to use something like SQL for speed. If you do use a flat file, MAKE SURE YOU USE HASHES AND PUT IT IN A NON-WEB ACCESSABLE PLACE.

no offense taken...im a designer, not a programmer.
thanks for your input.
 
Back
Top