boboreo1222 Posted April 25, 2007 Share Posted April 25, 2007 I recently set up my database and.. Well, when people click register it goes to www.bobbykingmagic.com/database/register.php which isnt a name. How do I fix that? and where in my code do I have something for login because on my website, when people click login it doesnt do anyhting Link to comment https://forums.phpfreaks.com/topic/48549-just-a-quick-question/ Share on other sites More sharing options...
AndyB Posted April 25, 2007 Share Posted April 25, 2007 "... which isn't a name" - huh? Surely your script points to a file/place that exists, doesn't it? and where in my code .... what code, where? Link to comment https://forums.phpfreaks.com/topic/48549-just-a-quick-question/#findComment-237686 Share on other sites More sharing options...
benjaminbeazy Posted April 25, 2007 Share Posted April 25, 2007 the register link at the top goes here: http://www.bobbykingmagic.com/register.php, which has some include issues.. for the login, you need to put the username,password,submit form elements in <form></form> tags and lead it to the corresponding login action page, for example "login.php" like so <form method="post" action="YOUR_LOGIN_SCRIPT.PHP"> <tr> <td align="right"> Username: <input type="text" size="15" maxlength="25" name="username"> </td> </tr> <tr> <td align="right"> Password: <input type="password" size="15" maxlength="25" name="password"> </td></tr><tr> <td align="center"> <input type="submit" name="login" value="Login"> </td></tr> </form> Link to comment https://forums.phpfreaks.com/topic/48549-just-a-quick-question/#findComment-237688 Share on other sites More sharing options...
boboreo1222 Posted April 25, 2007 Author Share Posted April 25, 2007 I did that <form method="post" action="login.php"> <tr> <td align="right"> Username: <input type="text" size="15" maxlength="25" name="username"> </td> </tr> <tr> <td align="right"> Password: <input type="password" size="15" maxlength="25" name="password"> </td></tr><tr> <td align="center"> <input type="submit" name="login" value="Login"> </td></tr> </form> </td></tr></table></form> but it still wont work How do I make it go to www.bobbykingmagic.com/login.php Do I take all of the database folders out of the "Database" folder and keep them all in the Public_html folder Link to comment https://forums.phpfreaks.com/topic/48549-just-a-quick-question/#findComment-237690 Share on other sites More sharing options...
sanfly Posted April 25, 2007 Share Posted April 25, 2007 *sigh* All your files are in the Database folder, so you need to have <form method="post" action="Database/login.php"> or move the files back into the root directory Link to comment https://forums.phpfreaks.com/topic/48549-just-a-quick-question/#findComment-237706 Share on other sites More sharing options...
benjaminbeazy Posted April 25, 2007 Share Posted April 25, 2007 http://www.bobbykingmagic.com/login.php returns... Not Found The requested URL /login.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.34 Server at www.bobbykingmagic.com Port 80 the page doesn't exist here. if you do have a login script you need to locate exactly where it is in your file structure and point the form to it Link to comment https://forums.phpfreaks.com/topic/48549-just-a-quick-question/#findComment-237708 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.