Simple Security

From: Date: Mon, 11 Sep 2000 06:03:53 +0000
Subject: Simple Security
Groups: php.general 
Request: Send a blank email to php-general+get-16121@lists.php.net to get a copy of this message
I was wondering how secure is creating an html form that passes a name along to a php file that says something like: <?php if ($realname =="Andrew" or $realname == "andrew") { echo "<P><hr 6>"; echo "<center><b>Welcome Andrew</b></center>"; echo "The Information Entered into this Test Form Was: <br>"; etc............ Is something like that fairly easy to hack into, or is fairly secure? I am thinking the problem with that method is someone can just view that directory and download the php file and then view it. So is there a better simple way to just create a barrier to getting to certain pages? Thanks, if you want to reply personally, remove all numbers from my address. -- Andrew V. Romero Romer1999o@pharmacy.arizona.edu Remove the #'s from my address to reply. http://www.u.arizona.edu/~avr/ ICQ #54080914

« previous php.general (#16121) next »