thanks I was scratching my head over it, Can’t believe I missed such a small thing, Any how I fix that but the header doesn’t work
I get this, I dont know much about redirecting.
Warning: Cannot modify header information - headers already sent by (output started at /home/dri49407/public_html/index.php:2) in /home/dri49407/public_html/index.php on line 6
-I never imagined such a simple thing could be trouble, anyhow heres the code.
<?php
$closed_password = $_POST['closed_password'];
if ( $closed_password == 'test' ) {
header( 'Location: http://www.password_correct.com/');
}
?>
This is a Closed website, to Enter
you must type in the password
right now the php is at the top of the page,
can’t remember if its supposed to be after the tag or not, I believe it shouldn’t though.
i figure i need to refresh the page.