Simple PHP/CGI/whatever

For all coding issues - MODers and programmers, HTML and more.

Moderators: Jeff250, fliptw

Post Reply
Pink Panther
DBB Ace
DBB Ace
Posts: 435
Joined: Mon Apr 24, 2000 2:01 am
Location: Texas
Contact:

Simple PHP/CGI/whatever

Post 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.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Yes it can be done.

No it is not simple.
User avatar
Sergeant Thorne
DBB Material Defender
DBB Material Defender
Posts: 4640
Joined: Sun Nov 25, 2001 3:01 am
Location: Indiana, U.S.A.

Post by Sergeant Thorne »

A single username and password, or is it for visitors/members?
Pink Panther
DBB Ace
DBB Ace
Posts: 435
Joined: Mon Apr 24, 2000 2:01 am
Location: Texas
Contact:

Post 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.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post 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.
User avatar
Instig8
DBB Ace
DBB Ace
Posts: 347
Joined: Wed Jun 20, 2001 2:01 am
Location: Orange County, CA, USA
Contact:

Post 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! :)
Pink Panther
DBB Ace
DBB Ace
Posts: 435
Joined: Mon Apr 24, 2000 2:01 am
Location: Texas
Contact:

Post 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! :)
Post Reply