• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RESOLVED 403 error

Status
Not open for further replies.

CHIEF

New member
Messages
2
Likes
0
Points
1
#1
Hello,
so i have started using this plug in and i love it however, recently i just ran into the issue of now whenever i go to make a new code with any php it just stops working. if i dont throw in any code it is fine but the moment i do it gives me a 403 error. any ideas?

here is a login page i made for the site, with my database login deleted.

PHP:
<?php
session_start();   
    
if(isset($_REQUEST['login']))
{

    // Create connection
    $conn = new mysqli($servername, $username, $password, $dbname);
    // Check connection
    if ($conn->connect_error)
    {
        die("Connection failed: " . $conn->connect_error);
    }
    $sql = "SELECT Username FROM Players WHERE username='{$_REQUEST['Username']}' AND password=MD5('{$_REQUEST['Password']}')";
    
    $result = $conn->query($sql);
    
    if ($result->num_rows > 0) {

        while($row = $result->fetch_assoc()) {
            $_SESSION['Username'] = $row['Username'];
            header('Location:https://athletedevelopmentcompass.com/a-registration-page/');
        }
    }   
    else
    {
        echo "User not found";
    }
}
?>
    <form action='' method='post' enctype='multipart/form-data'><table>
    <tr><td>Username: <input type='text' name='Username'></td></tr>
    <tr><td>Password: <input type='password' name='Password'></td></tr>
    <tr><td><input type='submit' name='login' value='Login'></td></tr>
</table>
        </form>
<a href ='https://athletedevelopmentcompass.com/a-which-are-you-page/'>New user? Click here to register</a>
 
Status
Not open for further replies.