School Map:
Home / Enroll
$ Student Records; Class
$ News @ LIVE
Tech Radio * Support/FAQ
| Store | FORUMS
Class / Forums / homeroom ![]() |
need help with admin password in php |
(#288 2006-02-01 09:19:35) Post Reply |
|
Techprep
|
http://www.php-scripts.com/php...199.php3#Making
that's the guide I'm using. I am running Suse Linux 9, I am also running Mozzilla FireFox. My problem is, I followed the little toutorial and made the files. When I went to run it, I put in the password and, for some reason, all I get is either a blank screen, or the code. What am I doing wrong? My code is as follows index.html's code: <html> <head> <title>test</title> </head> <body> <form method="POST" action="example18.php3"> <div align="left"><p><font face="BankGothic Md BT">Admin password?</font> <input type="password" name="pw" size="14"><input type="submit" value="Submit"></p> </div> </form> </body> </html> example18.php3's code: <html><? $adminpass = "test123"; if ($pw == $adminpass) { print("Welcome to the administrative area!!!"); } else { print("Wrong password"); } ?></html> I thank you in advance. |
|
View Previous Thread Print This Page |
School Map:
Home / Enroll
$ Student Records; Class
$ News @ LIVE
Tech Radio * Support/FAQ
| Store
Advertising
| Link To Us | Privacy
Copyright 2000-2002 Script School Productions / KMR
Enterprises
No part of this website may be reproduced, copied and/or distributed
in any medium
without express written permission