i have one field on index.php
Password:
if a user enters the password correctly they will be taken to another page index2.php
if they enter it incorrect
echo "password incorrect"
also if they try to go straight to index2.php without entering the password it will just put them back to the normal index.php and require the password to be entered.
how would i go about doing that?