Phpnewbie23 Posted April 2, 2009 Share Posted April 2, 2009 Hi Guys I keep getting The page cannot be displayed The page you are looking for cannot be displayed because the page address is incorrect. Please try the following: * If you typed the page address in the Address bar, check that it is entered correctly. * Open the localhost home page and then look for links to the information you want. HTTP 405 - Resource not allowed Internet Information Services Technical Information (for support personnel) * More information: Microsoft Support With this code <?php include 'db_conn.php'; include 'define.php'; echo "<br>"; echo "<form method='POST' action='http://localhost/backup-report/test.html'>"; //javascript/popup/addpopup.js'>"; echo "select Client:<select name='Client'>"; foreach($clients as $client){ echo "<option value='1'>$client</option>"; } echo "</select>"; echo"<br>"; echo "<table id='table'>"; echo "<tr>"; echo "<td align=center>Type client name</td>","\n"; echo "<td align=center><input type='Text' value='Type Customer Name' /> </td>","\n"; echo "<td align=center><input type='Submit' value='Submit' /> </td>","\n"; echo "</tr>"; echo "</table>"; echo "</form>"; echo"<br>"; echo "<form action='rempopup.js' method='POST'>"; echo "<table id='table'>"; echo "<tr>"; echo "<td align=center>Type client name</td>","\n"; echo "<td align=center><input type='Text' value='Type Customer Name' /> </td>","\n"; echo "<td align=center><input type='Submit' value='Remove' /> </tdn";>","\n echo "</tr>"; echo "</table>"; echo "</form>"; ?> This happens when i click on the <?php echo "<td align=center><input type='Submit' value='Submit' /> </td>","\n"; ?> which should then run a .js script that dispalys a windows that runs the remove script that removes the customer from the define.php which builds the array All help greatly appricated any ideas????? Cheers James Link to comment https://forums.phpfreaks.com/topic/152250-page-cannot-be-displayed/ Share on other sites More sharing options...
taquitosensei Posted April 2, 2009 Share Posted April 2, 2009 try using a relative URL for the post action something along these lines echo "<form method='POST' action='test.html'>"; Link to comment https://forums.phpfreaks.com/topic/152250-page-cannot-be-displayed/#findComment-799517 Share on other sites More sharing options...
Phpnewbie23 Posted April 3, 2009 Author Share Posted April 3, 2009 Thanks taquitosensei i did try this while i was testing after i posted the this and same error. Thanks James Link to comment https://forums.phpfreaks.com/topic/152250-page-cannot-be-displayed/#findComment-800093 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.