illuz1on Posted May 16, 2007 Share Posted May 16, 2007 Hey, Im looking for a bit of advice here... if I want to add password protection or a admin login to this piece of code, can anyone advise on how or point me to a good tutorial? <?php /* Created on: 4/23/2007 */ ?> <? include("db-a.php"); ?> <html> <body> <center>Cape Town Beaches Administration</center><br> <center>Please select administration function</center> <br> <center><a href="beachesadmin.php?action=add">Add</a> | <a href="beachesadmin.php?action=view">View Entries</a><br></center> <br> <hr> </body> </html> <? if( $_GET["action"] == "insert" ){ // INSERT ACTION /////////////////////////////////// // Code Goes Here } elseif( $_GET["action"] == "add" ){ // ADD ACTION /////////////////////////////////// // Code Goes Here } elseif( $_GET["action"] == "editpro" ){ // EDIT ACTION ////////////////////////////////////////////// // Code Goes Here } elseif( $_GET["action"] == "edit" ){ // EDIT /////////////////////////////////// // Code Goes Here } elseif( $_GET["action"] == "delete" ){ // LIST ONLY THE GALLERY /////////////////////////////////// // Code Goes Here } elseif( $_GET["action"] == "view" ){ // LIST ALL RECORDS IN THE BEACH DATABASE /////////////////////////////////// // Code Goes Here } } ?> Link to comment https://forums.phpfreaks.com/topic/51652-password-protection-none-seem-to-apply/ Share on other sites More sharing options...
DanDaBeginner Posted May 16, 2007 Share Posted May 16, 2007 try this: http://phpsec.org/articles/2005/password-hashing.html Link to comment https://forums.phpfreaks.com/topic/51652-password-protection-none-seem-to-apply/#findComment-254433 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.