Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Login and Password Script.

SpaceshipSpaceship
SpaceshipSpaceship
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
Close
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
Close
Thanks for the rep. And Try out the Script,Sir.
 
0
Close
too easy to hack this script... even a beginner could figure this out.
 
0
Close
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
Close
Thats nice, TOm..
 
0
Close
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
Close
Nice script, rep added :)
 
0
Close
oi...
ouch....
aie......
 
0
Close
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back