I have 2 problems with this code first is that i only want the error code to display if the submit button has been selected and the username and password are incorrect. 2nd is that i am not sure where the redirect code should be placed in this code. Here is what i have so far
[php]
<?php $user=$_POST['user']; $pass=$_POST['pass']; // start authenticate username and password if (($user=="") && ($pass=="")) echo " Access Granted !" ; else echo " Access Denied!"; ?>Username:
Password:
header( ‘Location: includes/inc_admin.php’ )
[/php]