changed POST to GET in index.php