View Single Post
slodave slodave is offline
Registered
 
slodave's Avatar
 
Join Date: Sep 2005
Location: Encino Man
Posts: 22,394
Garage
Send a message via Skype™ to slodave
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";

}
?>
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs.

'84 Targa - Arena Red - AX #104
'07 Toyota Camry Hybrid - Yes, I'm that guy...
'01 Toyota Corolla - Urban Camouflage - SOLD

Last edited by slodave; 06-05-2008 at 06:05 PM..
Old 06-05-2008, 05:54 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #10 (permalink)