NamePros.Com (http://www.namepros.com/)
-   CODE (http://www.namepros.com/code/)
-   -   Login and Password Script. (http://www.namepros.com/code/216895-login-and-password-script.html)

blackwizard 07-14-2006 05:13 AM

Login and Password Script.
 
Simply insert this in the <body> section:

Code:
<script language="javascript"> <!--// /*This Script allows people to enter by using a form that asks for a UserID and Password*/ function pasuser(form) { if (form.id.value=="JavaScript") { if (form.pass.value=="Kit") { location="page2.html" } else { alert("Invalid Password") } } else { alert("Invalid UserID") } } //--> </script> <center> <table bgcolor="white" cellpadding="12" border="1"> <tr><td colspan="2"><center><h1><i><b>Login Area</b></i></h1></center></td></tr> <tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input name="id" type="text"></td></tr> <tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass" type="password"></td></tr> <tr><td><center><input type="button" value="Login" onClick="pasuser(this.form)"></center></td><td><center><br><input type="Reset"></form></td></tr></table></center>



Quote:




Reputation is always appreciated.

fmauniverse 07-14-2006 05:26 AM

Thanks
 
Thanks and rep added.

Regards. :)

blackwizard 07-14-2006 05:28 AM

Thanks for the rep. And Try out the Script,Sir.

jontalbot 07-14-2006 05:42 AM

too easy to hack this script... even a beginner could figure this out.

Phoenix 07-20-2006 03:05 PM

All you have to do to bypass this script is View Source - a more efficient method (still very basic), using PHP where they cannot bypass it as easily would be to use:

Code:
<?php $userpass = $_POST['pass']; if($userpass == "password") { echo "Thank you for using this script."; } else { echo "That password was incorrect."; } ?>


~ Tom

blackwizard 07-22-2006 03:51 AM

Thats nice, TOm..

rcep 09-01-2006 12:32 PM

i guess that would be the simplest fix for this script ;) i once used something similar to this
Originally Posted by Phoenix
All you have to do to bypass this script is View Source - a more efficient method (still very basic), using PHP where they cannot bypass it as easily would be to use:

Code:
<?php $userpass = $_POST['pass']; if($userpass == "password") { echo "Thank you for using this script."; } else { echo "That password was incorrect."; } ?>


~ Tom


zielak 09-02-2006 08:33 PM

Nice script, rep added :)

Noobie 09-02-2006 08:52 PM

oi...
ouch....
aie......

NeeJam 09-02-2006 09:06 PM

you could just go to www.hotscripts.com and get a free simple on done for you!


All times are GMT -7. The time now is 02:33 AM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0