Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old November 16th, 2004, 06:06 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.

Reply With Quote
  #2  
Old November 16th, 2004, 06:50 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: PHP on IIS

how in the world did you get the form to work before without an action attribute?

Reply With Quote
  #3  
Old November 16th, 2004, 07:06 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP on IIS

On Apache, the form would automatically submit the variables to the page it's on.

Reply With Quote
  #4  
Old November 16th, 2004, 07:43 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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.

Reply With Quote
  #5  
Old December 16th, 2004, 02:14 AM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
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

Reply With Quote
  #6  
Old December 16th, 2004, 04:21 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: PHP on IIS

IIS wont allow forms to post without an action attribute being specified...the reason...security believe it or not.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > PHP on IIS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway