Here's a simple php/HTML page...
First Page:
PHP Code:
<?php
print "<HTML>\n";
print "<TITLE>My Page</TITLE>\n";
print "<BODY>\n";
print "<FORM ACTION=nextpage.php METHOD=POST>\n";
print "Please enter a the password<BR />\n";
print "<INPUT TYPE=PASSWORD NAME=password>\n";
print "</FORM>\n";
print "</BODY>\n";
print "</HTML>\n";
?>
nextpage.php...
PHP Code:
<?php
$variable=$password;
if ($variable == 'test1234') {
print "<HTML>\n";
print "<TITLE>Page 2</TITLE>\n";
print "<BODY>\n";
print "Password is correct.<BR />\n";
print "Your data goes here.\n";
print "</BODY>\n";
print "</HTML>\n";
} else {
print "Password is invalid";
}
?>