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. Quote Link to comment 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']; ?> Quote Link to comment Share on other sites More sharing options...
mbowling Posted August 24, 2007 Author Share Posted August 24, 2007 That worked. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.