|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
PHP on IIS
I've developed several sites with PHP on a Linux server running Apache, and all the sites worked perfectly while on the Linux server. Now I'm in the process of migrating them to a Windows server running IIS 5.0. Most scripts work normally, but my login forms don't behave properly.
When the form is submitted, the browser displays a 405 - Resource not allowed error. I've discovered this is because there are no action attributes in the login form tags. Once I place an action attribute with the page's name as the variable, the login form works properly. I'm the administrator on both our Windows and Linux servers and I've set up all the appropriate preferences for the IIS: Enable Default Documents to include index.php, Execute Permissions to Scripts only, etc... The short answer is for me to manually add an action attribute to all login forms, but I can't help but feel there is another setting somewhere in the bowels of IIS that can fix this. |
|
#2
|
|||
|
|||
|
RE: PHP on IIS
how in the world did you get the form to work before without an action attribute?
|
|
#3
|
|||
|
|||
|
RE: PHP on IIS
On Apache, the form would automatically submit the variables to the page it's on.
|
|
#4
|
|||
|
|||
|
RE: PHP on IIS
i don't believe this is a server limitation. i use IIS on my personal PC and have always used linux servers for production. The proper way to create a form in HTML is by defining the action attribute, even if it's PHP_SELF.
sorry if that doesn't help much. |
|
#5
|
||||
|
||||
|
RE: PHP on IIS
The behavior of servers that receive form data is beyond the scope of the specs, but the HTML specification says action is a required attribute for the form element. http://www.w3.org/TR/REC-html40/int...rms.html#h-17.3.
Sorry... there's no fix for having sloppy code except to fix it. -Tim |
|
#6
|
|||
|
|||
|
RE: PHP on IIS
IIS wont allow forms to post without an action attribute being specified...the reason...security believe it or not.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > PHP on IIS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|