The following PHP file (login.php) is returning HTTP ERROR 500. When deleting the php from the file and running, I am then able to then see the HTML/CSS of my login form, except the form (obviously) does not work.
Not sure which aspect of the php is causing the issue maybe db.php or class.php?
Any and all help is appreciated.
<?php
require_once('load.php');
if ( $_GET('action') == 'logout' ) {
$loggedout = $j->logout();
}
$logged = $j->login('index.php');
?>
<html>
<body>
<p>html/css content...</p>
</body>
</html>
The load.php script is as follows:
<?php
//Load all the required files in order
require_once(dirname(__FILE__) . '/config.php');
require_once(dirname(__FILE__) . '/j_includes/db.php');
require_once(dirname(__FILE__) . '/j_includes/class.php');
?>