Hi guys. 
What I'm trying to do is have my PHP code include a file when a correct word is typed into a text box. If the wrong word is typed, I'm aiming to for it to echo an error message. Heres what I have so far (I know it's most likely very wrong, but I was hoping someone could help me out!
)
I have the textbox named "password", but am not sure what I should be using for the method and action tags as part of the form.
Thanks in advance!
-psy

What I'm trying to do is have my PHP code include a file when a correct word is typed into a text box. If the wrong word is typed, I'm aiming to for it to echo an error message. Heres what I have so far (I know it's most likely very wrong, but I was hoping someone could help me out!

PHP Code:
<?php
$password = "something";
if ( $password == "something" ) {
include("correct.php");
}
else
echo "Wrong!<br />"
?>
Thanks in advance!
-psy
Comment