Skip to main content
April 10, 2008
Question

Login Behavior Using CS3

I created a page and put the "Restrict Access to Page" behavior on it that point to a log in page. That works fine and it does redirect to the "login" page when I try it. Now on the "login" page I added the "Log in User" behavior. I have a mysql database tied into it an the page sees that fine.

But when I go online and try to login I fill out the form, hit submit and nothing happens. The page thinks for awhile but just sits there. No errors appear, it just stays on the same page.

Any help would be greatly appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

Known Participant
April 10, 2008
This is probably obvious, but if you accidentally placed a Restrict Access behavior on the login page, redirecting the disallowed access back to the login page, then this is what you will get.

Been there
Translate
Inspiring
April 10, 2008
TC5Racer wrote:
> But when I go online and try to login I fill out the form, hit submit and
> nothing happens. The page thinks for awhile but just sits there. No errors
> appear, it just stays on the same page.

The problem is almost certainly caused by output being sent to the
browser before the script gets to this line:

header("Location: " . $MM_redirectLoginSuccess );

As the following page in the PHP manual explains: "It is a very common
error to read code with include(), or require(), functions, or another
file access function, and have spaces or empty lines that are output
before header() is called."

http://docs.php.net/manual/en/function.header.php

You need to remove any spaces or empty lines outside the PHP tags in
both the login page and the page that contains the database connection.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
April 12, 2008
Hi,

I tried this. Removed all extra spaces before and after the PHP tags and it is still not working. What should I try next?

Thanks...
Translate