Jump to content

Just a quick question.


boboreo1222

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.