I have a new code... now what?
I was in another forum and was given the following code:
Code:
<?php
if($_POST['user']) {
if(($_POST['user'] == "john") && ($_POST['pass'] == "travolta")) header("Location: johntravolta.php");
else if(($_POST['user'] == "john") && ($_POST['pass'] == "cusak")) header("Location: johncusak.php");
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Log in</title>
</head>
<body>
<form action="<?=$PHP_SELF?>" method="post">
<p>Username: </p><input type="text" name="user"/>
<p>Password: </p><input type="password" name="pass"/>
</form>
</body>
</html>
<?php } ?>
Thank you to Twey for the code and advice...
Now by reading this you can see what I want to accomplish, to seperate destinations from one password box, with two different passwords and one common username (john/travolta & john/cusak in the above example).
Now due to the nature of my site, this is why I am afraid this code wont work. My site is a riddle site where players have to use all availiable resources to find the hidden hints, and manipulate sounds, text and pitctures etc to find the correct word(s) to get to the next level. One of the most common places to hide these clues is the source code.
Obviously I can't have the answers in the source code.
Can anyone tell me where I might find a way to do this code with HTML, using the .htaccess and .password files, OR even some way to disable completely the access to the source code (must be applicable for ALL browsers, and include right clicking, as well as view--souce).
Thank you again to Twey for the original code, and for the help.
(I am playing around with this code to try and make it work)
BLiZZ