Jump to content

[SOLVED] $_SERVER['PHP_SELF'] on IIS


mbowling

Recommended Posts

I'm testing some code on IIS. The form submission is not working on IIS but works fine on Apache.

 

This is the form code:

<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">

 

This is appearing in the browser address bar when submitting the form:

http://192.168.10.89/multiple_select/%3C?=$_SERVER['PHP_SELF']?>

 

On IIS a "HTTP 405 - Resource not allowed" error is returned because of the garbage in the adress bar.

 

What am I doing wrong? Thanks.

Link to comment
https://forums.phpfreaks.com/topic/66420-solved-_serverphp_self-on-iis/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.