mbowling Posted August 23, 2007 Share Posted August 23, 2007 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 More sharing options...
nathanmaxsonadil Posted August 24, 2007 Share Posted August 24, 2007 maybe change <?=$_SERVER['PHP_SELF']?> to <?php echo $_SERVER['PHP_SELF']; ?> Link to comment https://forums.phpfreaks.com/topic/66420-solved-_serverphp_self-on-iis/#findComment-332456 Share on other sites More sharing options...
mbowling Posted August 24, 2007 Author Share Posted August 24, 2007 That worked. Thank you. Link to comment https://forums.phpfreaks.com/topic/66420-solved-_serverphp_self-on-iis/#findComment-332458 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.