Hello PHP Freaks forum,
I am a beginner in web development and seem to be understanding it very quickly, but there is one thing that is putting this into some halt.
I have this code right here, what I want to do is have a "riddle site", where if you answer the riddle correctly, it redirects you to another page (in other words to the next riddle).
Object:
If correct, give access to next page.
If incorrect, stay on page and print "Incorrect".
I've tried to start on it, but the way how HTML and PHP don't mix very well, I feel like in the middle of an ocean feeling helpless.
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>
<font face="Courier New">ZnJ5cyBwYmFnbnZhcnEgaGFxcmVqbmdyZSBvZXJuZ3V2YXQgbmNjbmVuZ2hm</font>
</p>
CLUE: The base is rotated
<br/></body>
<form action="index-5.php" method="post">
Answer: <input type="text" name="number" /><br />
</select>
<input name="submit" type="submit">
</form>
<?php
if(isset($_POST['submit'])){
$number = $_POST['number'];
if ($number == "scuba"){
echo "CORRECT";}
}
?>
</html>
If possible, can you give me an explanation how to do it and a sample of it as well?
Thanks,
Gldnbr