Problem with login pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
REdefined
Forum Newbie
Posts: 1
Joined: Mon Mar 15, 2004 11:35 am

Problem with login pages

Post by REdefined »

I'm having a little trouble with a few of my login pages.

When I type the address as: http://www.mydomain/folder/ it shows the login page just fine, but on submit it will not load the next page.

However when I do: http://www.mydomain/folder/index.php it shows the exact same login page, and when I submit [login] it shows the next page just fine.

The sites are on a windows web server running IIS. I'm curious if anyone else has experienced this problem or if anyone has any ideas for a fix. When I run the exact same pages in apache, it doesn't matter weither I have the page specified or not.
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Re: Problem with login pages

Post by TheBentinel.com »

REdefined wrote:I'm having a little trouble with a few of my login pages.

When I type the address as: http://www.mydomain/folder/ it shows the login page just fine, but on submit it will not load the next page.

However when I do: http://www.mydomain/folder/index.php it shows the exact same login page, and when I submit [login] it shows the next page just fine.

The sites are on a windows web server running IIS. I'm curious if anyone else has experienced this problem or if anyone has any ideas for a fix. When I run the exact same pages in apache, it doesn't matter weither I have the page specified or not.
What does your form's action attribute look like? If you don't have one, or it's blank, that may be what's biting you. Since you've requested the folder, the server has to see if you've enabled a default document, see if it's present, and load it instead. I don't know if that same process ends up breaking a form GET/PUT or not.

It would be interesting to see if changing the method in the form has any effect. Change GET to PUT, or vice versa.
Post Reply