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/');
}
?>
<form method='post' action='index.php'>
<span class='style1'>This is a Closed website, to Enter</span> <br />
<span class='style1'>you must type in the password</span><br />
<br />
<div align='center'>
<input name='closed_password' type='password' id='closed_password' />
<br />
<input name='submit' type='button' value='Enter' />
</div>
</form>
right now the php is at the top of the page,
can't remember if its supposed to be after the <html> tag or not, I believe it shouldn't though.

i figure i need to refresh the page.