Hi all,
I am creating a online c.v
but do not want it open to every one so i have made a simple login file
but want the page to re-direct when the login is correct,
<?php
$user = "user";
$pass = "pass"
if ($_POST["username"] != $user && $_POST["pass"] != $pass ) { ?>
<form method="post" action="index.php" >
Username: <input type="text" name="username" />
<br/>
Password: <input type="text" name="pass" />
<br/>
<input type="submit" value="login" />
<?php } else { ?>
Now how would i re-direct the person i know how to re-direct them when the page loads but not this way.
Im confused with thisand would like to get my c.v up online asap so any help would be very appriciated
Thank you