I have an If statement but I want it to run only if the two conditions inside are met e.g.:
<?php
if (($_POST['name']) == 'test') {
if($_POST['passe']) == 'test') {
logedin();
} else {
notloged();
}
//If login works do the following:
function logedin() {
echo "Welcome, ". $_POST['name'] ."<br>";
echo "<a href=". " ."http://www.gtaboards.com". " .">boards</a><br>";
//Put html in here for a succesful login! But dont use ""'s instead use " !!
echo "<font> Awsome forum!!</font><br>";
}
//If login failed:
function notloged() {
echo "The username or password does not exist!";
}
?>