If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Can't login to website once hosted online

I've been trying to build a website and it isn't coming easy.

I've built it using my localhost as a server using firefox for testing. I thought I was getting close to the end on the app side of the website however after testing on different browers I have issues.

At that point I thought I would upload it to a free host and try it live and online. I'm using 000webhost and have used them in the past but never for a site like this. So maybe its because of them I don't know.

After changing all references to my database to the database on 000webhost and uploading it to their servers I can no longer log into the website.

When I enter a username and password it only reloads the top portion of the website. Here's a link to it, if anyone has any ideas it would be appreciated.

Posting your code would be the quickest way of determining what the code is doing that would not be portable between different servers.

If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

^
Since we cannot see your code when served from a webserver, the only way to troubleshoot is to see the code itself. My immediate guess is the use of register globals or code relying on it (such as session_register), but that is not the only cause for such issues.

PHP Code:

header('HTTP/1.1 420 Enhance Your Calm');

Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

After changing all references to my database to the database on 000webhost and uploading it to their servers I can no longer log into the website.

You should have your database credentials in an included file so that they are defined in only one place, with only one place to change when needed.

If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.