Skip to main content
Participating Frequently
November 14, 2007
Question

Custom pages depending on password

  • November 14, 2007
  • 15 replies
  • 993 views
Hi, I've created a webpage in php for my girlfriend who's a photographer and she wants a client page where they will enter a password and it will lead them to a page based on the password. I was wondering if anyone knows of a tutorial or a way for me to do just that.

any help is appreciated
This topic has been closed for replies.

15 replies

Inspiring
November 14, 2007
Andy-K wrote:
> also to add, i have a login page where when a certain password is entered, it will take them to their own page to view their photos

Use the built-in Dreamweaver Log In User server behavior on the login
page. Create a folder for each user based on the username. So, if the
username is joesoap, create a folder called either joesoap or
joesoap_photos. You can then use this to redirect the user to his/her
own folder on successful login.

In the Log In User server behavior dialog box, enter the following in
the field labelled "If login succeeds, go to":

$_SESSION[MM_Username]/index.php

This will take the user called joesoap to joesoap/index.php. If you call
the folder joesoap_photos, us this:

$_SESSION[MM_Username]_photos/index.php

Apply the Restrict Access to Page server behavior to all restricted pages.

Someone else suggested getting a book on PHP and Dreamweaver. If you're
looking for one, take a look at my "The Essential Guide to Dreamweaver
CS3 with CSS, Ajax, and PHP" (you can see more details by following the
link in my sig). It covers all the server behaviors in Dreamweaver, as
well as teaching you the basics of PHP so that you can adapt the
Dreamweaver code to suit your own requirements.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Inspiring
November 14, 2007
"Andy-K" wrote
> Hi, I've created a webpage in php for my girlfriend who's a photographer
> and
> she wants a client page where they will enter a password and it will lead
> them
> to a page based on the password. I was wondering if anyone knows of a
> tutorial
> or a way for me to do just that.
>
> any help is appreciated
>

Maybe you can use this great site
http://www.zubrag.com/scripts/password-protect.php

/Tine


Andy-KAuthor
Participating Frequently
November 14, 2007
also to add, i have a login page where when a certain password is entered, it will take them to their own page to view their photos
Andy-KAuthor
Participating Frequently
November 14, 2007
all thats going to be on the page are the client's photos but i just want the client that will be issued a password to be able to view his/her own pictures using that password
Inspiring
November 14, 2007
Whats going to be on the page? DW has built in user authentication behaviors, if you want to learn to use the tool, then go to a Bookstore, there are lots of books for learning PHP with Dreamweaver, look at a few and buy one you will be glad, $30-40 can save a lot of time.