Page 1 of 1
Simple PHP/CGI/whatever
Posted: Thu Apr 08, 2004 10:01 am
by Pink Panther
I'm making a website for someone I know. The front end is coming along, but he wants a login page where you type a user name and password, and, depending on the user name, it takes you to a different html page. Problem is, I hardly know anything beyond front-end design. I could do it in javascript, but that's not exactly the most secure way. Is there a simple way to do this with PHP, CGI or whatever it is I need to use?
http://www.gloryironworks.com
The Client Access page is the front end for this.
Posted: Thu Apr 08, 2004 10:58 am
by DCrazy
Yes it can be done.
No it is not simple.
Posted: Thu Apr 08, 2004 12:00 pm
by Sergeant Thorne
A single username and password, or is it for visitors/members?
Posted: Thu Apr 08, 2004 2:24 pm
by Pink Panther
DCrazy wrote:Yes it can be done.
No it is not simple.
I was afraid of that.
Basically, there might be a user named "Joe" and a user named "Bob". Type in the username Bob and the password, and it takes you to bob.html. I guess the HTML pages would need to be stored in the database.
Posted: Thu Apr 08, 2004 8:29 pm
by DCrazy
No, the pages themselves would not (need to) be stored in the database.
What would need to be done is to store the users and their contract information in the database, and then have the PHP page verify a user's login and, if valid, display the list of contracts. It could easily be a 3 or 4 week job, minimum.
Posted: Thu Apr 08, 2004 10:51 pm
by Instig8
Depends on your requirements. It could take anywhere from one hour to several weeks.
Do you need sessions?
Will the user ever need to access more than one page?
Do you need a full user admin where the user can update their info/password?
Do you need a 'send me my password' page should a user forget theirs?
Do you need an admin area for the boss to add/view/modify/delete users?
Assuming none of the above, you could probably farm it out to some poor programmer in Pakistan. 20 bucks won't kill ya.
Also, you gotta have a fairly complete use case before you can even get close to an accurate quote for time or money.
Good luck!
Posted: Tue Apr 13, 2004 12:10 am
by Pink Panther
lol @ the programmer in pakistan
Anyway, really I don't need any of the stuff you said, although a moderately easy way to modify user accounds and such would be nice.
But I think I'll probabaly go with javascript. It isn't exactly top secret information I'm dealing with.
Anyway, thanks for the input!