I'm just trying to code a quick and simple script which will validate a text box, it will be looking for the correct pass, without using SQL... I want to embed the pass within the PHP script and validate it from the PHP script...
My php script: cha1.php
Code: Select all
<?php
if ($pass == "AbraCadabra") ; {
echo = "Correct!" ;
else {
echo = "Wrong!" ;
}}
?>Code: Select all
<html>
<head>
<title></title>
</head>
<body>
<form action="/cha1.php">
<input type="text" name="pass">
<input type="submit" value="Check Pass">
</form>
</body>
</html>