I have done some hunting around on Goooooogle but couldn't find anything free. I am building a website which needs a secure login area for specific members, and when a member logs in using a user name and password, depending on the user name depends on the page they land on. |
|
There is probably a way to do this. I'm not entirely sure myself, but if i were you i'd keep looking around for answers, post on some support forums if you can and see if people can make any suggestions, they usually will do. |
|
May I add that you get a subdomain with Spruz, total control over your site and free indexing? |
|
Personally, if it were me, I would create a new field in your members table, called "login_url", with a default value of "index.php" or whatever page you want the regular members to go to after they login. Then, on the users you want the special pages for, change it to whatever the page url is. |
|
Tao, |
|
Ok, so I assume then that there is a way to check to see if someone is referred, like a referral code someone enters then? If so, the simplest way would be to have 2 seperate sets of prices in the database, and do something like this when they login: |
|
Not a way to check. The way it works is she sets 'deals' with an agency, whereby is a model needs some portfolio shots, they will send the model to her website, they go to the prices page and enter in login credentials. |
|
Oh, so she has different prices for different agencies then? Well, depending on how easy you wanna do it, I would suggest using 1 prices page, but depending on the user logged in at the time, the content of that page will vary. And then with each new agency that she adds in, I guess just create a new table/entry with new prices that corrospond to that entry. |
|
cool how would that work? I don't have a database either.... |
|
Are you running the website, or is the other person? And the only way to get a Login of any kind, is to have a database that stores the information, unless you wanna hardcode it all into your script, which would take a while, and is harder to manipulate when need be. |
|
Ah sorry I do have a mysql database. But nothing there - wouldn't know how to set this up. I am running the website, but am very new to all this. I can build a site, but this is going above my knowledge |
|
Lol... well umm... remember that link I gave to you over MSN, to the Dev-Shed forums? The people there are really smart when it comes to php and mysql (if you post in the right section). |
|
if you want to do it simply without using a database, you need a static html page with a form in it and a password field with name="password" in it. the action of the form should point to a php page. |
|
Is this site worth money for you, or is it just something for fun? embedding a password directly into the PHP source like that isn't really the most secure thing to do. |
|
i did say it was quick and dirty. i make no apologies for that. if i was doing this myself i'd be using a mysql database, cookies and session keys but it didn't seem like adam knew if he had a database or how to use it so baby steps here. oh yeah, i'd also be charging for it by then |
|
Hehe I know you said it was quick n dirty |
|
Bookmarks