Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 1, 2026.

Login and Password Script.

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

blackwizard

Account Closed
Impact
12
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>




Reputation is always appreciated.
 
1
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Thanks

Thanks and rep added.

Regards. :)
 
0
•••
Thanks for the rep. And Try out the Script,Sir.
 
0
•••
too easy to hack this script... even a beginner could figure this out.
 
0
•••
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
 
0
•••
Thats nice, TOm..
 
0
•••
i guess that would be the simplest fix for this script ;) i once used something similar to this
Phoenix said:
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
 
0
•••
Nice script, rep added :)
 
0
•••
oi...
ouch....
aie......
 
0
•••
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back