NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Login and Password Script.

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 07-14-2006, 05:13 AM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Oct 2005
Location: India
Posts: 633
blackwizard is a jewel in the roughblackwizard is a jewel in the roughblackwizard is a jewel in the rough
 



Login and Password Script.


Simply insert this in the <body> section:
????: NamePros.com http://www.namepros.com/code/216895-login-and-password-script.html

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.
blackwizard is offline  
Old 07-14-2006, 05:26 AM   #2 (permalink)
Account Suspended
Join Date: May 2006
Posts: 584
fmauniverse is a name known to allfmauniverse is a name known to allfmauniverse is a name known to allfmauniverse is a name known to allfmauniverse is a name known to allfmauniverse is a name known to all
 



Thanks


Thanks and rep added.

Regards.
fmauniverse is offline  
Old 07-14-2006, 05:28 AM THREAD STARTER               #3 (permalink)
Account Closed
Join Date: Oct 2005
Location: India
Posts: 633
blackwizard is a jewel in the roughblackwizard is a jewel in the roughblackwizard is a jewel in the rough
 



Thanks for the rep. And Try out the Script,Sir.
blackwizard is offline  
Old 07-14-2006, 05:42 AM   #4 (permalink)
NamePros Regular
 
jontalbot's Avatar
Join Date: Jul 2005
Location: New Hampshire
Posts: 575
jontalbot is a jewel in the roughjontalbot is a jewel in the roughjontalbot is a jewel in the rough
 



too easy to hack this script... even a beginner could figure this out.
__________________
MRHOST.CO
jontalbot is offline  
Old 07-20-2006, 03:05 PM   #5 (permalink)
NP Maniacâ„¢
 
Phoenix's Avatar
Join Date: Apr 2004
Location: Nottingham, UK
Posts: 820
Phoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to behold
 




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
__________________
PHP/MySQL Development offered: PM me for a quote.
47ideas.com - my freelancing portfolio.
Phoenix is offline  
Old 07-22-2006, 03:51 AM THREAD STARTER               #6 (permalink)
Account Closed
Join Date: Oct 2005
Location: India
Posts: 633
blackwizard is a jewel in the roughblackwizard is a jewel in the roughblackwizard is a jewel in the rough
 



Thats nice, TOm..
blackwizard is offline  
Old 09-01-2006, 12:32 PM   #7 (permalink)
Senior Member
Join Date: Jul 2005
Location: lebanon
Posts: 2,461
rcep has much to be proud ofrcep has much to be proud ofrcep has much to be proud ofrcep has much to be proud ofrcep has much to be proud ofrcep has much to be proud ofrcep has much to be proud ofrcep has much to be proud of
 




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
__________________
Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer
_____ Email me for fast response ryan [at] ryansdistrict.com

________ My 9000NPs R 4 SALE cheap- Contact me!
rcep is offline  
Old 09-02-2006, 08:33 PM   #8 (permalink)
NamePros Regular
 
zielak's Avatar
Join Date: Jan 2006
Location: Palos Hills, IL
Posts: 844
zielak is just really nicezielak is just really nicezielak is just really nicezielak is just really nicezielak is just really nicezielak is just really nicezielak is just really nicezielak is just really nice
 



Nice script, rep added
zielak is offline  
Old 09-02-2006, 08:52 PM   #9 (permalink)
NamePros Regular
 
Noobie's Avatar
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
Noobie is on a distinguished road
 



oi...
ouch....
aie......
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline  
Old 09-02-2006, 09:06 PM   #10 (permalink)
Adsung.com
 
NeeJam's Avatar
Join Date: May 2006
Location: England
Posts: 1,624
NeeJam is a glorious beacon of lightNeeJam is a glorious beacon of lightNeeJam is a glorious beacon of lightNeeJam is a glorious beacon of lightNeeJam is a glorious beacon of light
 




you could just go to www.hotscripts.com and get a free simple on done for you!
__________________
Adsung
NeeJam is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:48 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger