But i was wondering if this code is correct that i thought of making
filename.php
Is this code correct and usable?
and i also need to know if there is a code to send the user to a certain page if a varible is equal to another varible.

| Code: |
|
<html> <head></head> <body> Password <input type="text" name="psw" size="5" maxlength="9"> <input type="submit" name="sumbmit" value="log in"> </body> </html> |
filename.php
| Code: |
|
<html> <head></head> <body> <?php //password varible $password= whateverpasswordis //check to see if password is right if ($_POST['psw'] == $password){ echo 'You craked the code';} else { echo 'errr wrong code try agin';} ?> </body> </html> |
Is this code correct and usable?
and i also need to know if there is a code to send the user to a certain page if a varible is equal to another varible.
