munky334 Posted October 21, 2008 Share Posted October 21, 2008 Hi there I recently installed wampserver and all my services started fine. The localhost , phpMyAdmin and SQLiteManager all open fine. The problem is that when I open up a project on my localhost (projects are all saved in the www directory) it will open the script an run it. If i click on submit i then get the following error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /checklogin.php was not found on this server.</p> </body></html> I am just confused , any advise on how I can resolve the problem? Thanking you in advance Quote Link to comment https://forums.phpfreaks.com/topic/129431-www-directory/ Share on other sites More sharing options...
rhodesa Posted October 21, 2008 Share Posted October 21, 2008 What is the URL in the location bar of the browser before and after the submit? Quote Link to comment https://forums.phpfreaks.com/topic/129431-www-directory/#findComment-671051 Share on other sites More sharing options...
munky334 Posted October 21, 2008 Author Share Posted October 21, 2008 hi there i first go into http://localhost/ then http://localhost/main_login.php which also loads fine the last step http://localhost/checklogin.php returns message The requested URL /checklogin.php was not found on this server. This is very strange as both scripts are in the www directory. Quote Link to comment https://forums.phpfreaks.com/topic/129431-www-directory/#findComment-671207 Share on other sites More sharing options...
neogranas Posted October 22, 2008 Share Posted October 22, 2008 Do you just type it in or do you have a link from main_login.php to checklogin.php? Quote Link to comment https://forums.phpfreaks.com/topic/129431-www-directory/#findComment-671359 Share on other sites More sharing options...
munky334 Posted October 22, 2008 Author Share Posted October 22, 2008 there is a link but perhaps i am not doing it correctly , please see script below: <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form1" method="post" action="checklogin.php"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="3"><strong>Member Login </strong></td> </tr> <tr> <td width="78">Username</td> <td width="6">:</td> <td width="294"><input name="myusername" type="text" id="myusername"></td> </tr> <tr> <td>Password</td> <td>:</td> <td><input name="mypassword" type="text" id="mypassword"></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Login"></td> </tr> </table> </td> </form> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/129431-www-directory/#findComment-671618 Share on other sites More sharing options...
rhodesa Posted October 22, 2008 Share Posted October 22, 2008 everything seems fine. i would double check the case (on windows, URLs are case sensitive). if you create another file (maybe call it test.php), and put it in the same folder, does http://localhost/test.php load it up? Quote Link to comment https://forums.phpfreaks.com/topic/129431-www-directory/#findComment-671747 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.