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/