Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Visitor login to unique members area

New Here ,
Jan 14, 2007 Jan 14, 2007

Copy link to clipboard

Copied

New to Dreamweaver with no coding skills other than html. I am building a site with different members areas and different access levels. Started a test site using php, set up my data base (phpMySQL), fields are username, password, access. Dreamweaver has connected to my data base but the server behavior settings only seems to allow a single destination page. Using php can I send a visitor to a page according to their username? I did read that Cold Fusion could handle this however my server does not support CF. Any help would be greatly appreciated.
TOPICS
Server side applications

Views

339
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 15, 2007 Jan 15, 2007

Copy link to clipboard

Copied

twoaspen wrote:
> Dreamweaver has connected to my data base but the server behavior
> settings only seems to allow a single destination page. Using php can I send a
> visitor to a page according to their username?

Yes, but it involves making a minor change in Code view. Apply the Log
In User server behavior using an ordinary page. For the sake of this
example, call it menu.php.

In Code view, find the following line:

$MM_redirectLoginSuccess = "menu.php";

Change it to this:

$MM_redirectLoginSuccess = "$loginUsername.php";

This will redirect the user to a page that uses his/her username. For
example, if the username is dpowers, it will redirect a successful login
to dpowers.php.

If you want to redirect to a different folder, you can add the rest of
the relative path inside the quotes, for example:

$MM_redirectLoginSuccess = "../users/$loginUsername.php";

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 15, 2007 Jan 15, 2007

Copy link to clipboard

Copied

LATEST
Thanks for the help, I'll have to spend more time with php.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines