Click to See Complete Forum and Search --> : Registration On site/ Login and Sign Up
Sorrowstfu
01-13-2006, 06:46 PM
Hey im makin a html site and wanted to put in a registration ( username/password) where it stores it on the site so they can log in there. The prob is ive googled it and asked people but recieved nothing. heres an example http://www.webdeveloper.com/forum/newreply.php?do=newreply&noquote=1&p=495289
JPnyc
01-13-2006, 06:53 PM
Well for starters, HTML can't do what you wish. You can do a simple version with javascript, but anyone with any savvy at all will view your source code and swipe the password. If you want to do it properly, it requires a database and serverside scripting.
Sorrowstfu
01-13-2006, 06:59 PM
Continue what do I do I dont care bout the username/passwords its a low priority site
Sorrowstfu
01-13-2006, 07:02 PM
Well for starters, HTML can't do what you wish. You can do a simple version with javascript, but anyone with any savvy at all will view your source code and swipe the password. If you want to do it properly, it requires a database and serverside scripting.
o and by the way i have a no right click code
JPnyc
01-13-2006, 07:07 PM
That won't stop anyone, believe me. But anyway, post the HTML to the login you have now, and I'll give you a simple javascript
Sorrowstfu
01-13-2006, 07:12 PM
That won't stop anyone, believe me. But anyway, post the HTML to the login you have now, and I'll give you a simple javascript
I dont have a login thats what im sayin do you want me to post the entire script?? I have ALOT OF THINGS OUT OF ORDER and Im 14 so its not a good (graphics) site
Sorrowstfu
01-13-2006, 07:39 PM
Um ok i found this code but how can i get it to save the info on the site and/or work with a login site!
<center>
<form method=post name=myForm onSubmit="return validatePwd()"><br>
Username:<br>
<input name="username" maxlength=12><p>
Password:<br>
<input type=password name=password maxlength=12><p>
Confirm Password:<br><input type=password name=password2 maxlength=12><p>
<input type=submit value="Submit">
</center>
<script language="JavaScript">
function validatePwd() {
var invalid = " "; // Invalid character is a space
var minLength = 6; // Minimum length
var pw1 = document.myForm.password.value;
var pw2 = document.myForm.password2.value;
var pw3 = document.myForm.username.value;
// check for a value in both fields.
if (pw1 == '' || pw2 == '' || pw3 == '') {
alert('Error: Please fill all the fields.');
return false;
}
// check for minimum length
if (document.myForm.password.value.length < minLength ) {
alert('Error: Password must be at least ' + minLength + ' characters long.');
return false;
}
// check for spaces
if (document.myForm.password.value.indexOf(invalid) > -1) {
alert("Error: Space character is not allowed in password");
return false;
}
else {
if (pw1 != pw2) {
alert ("Error: The passwords do not match.");
return false;
}
else {
alert('Congratulations! You filled all the fields correctly.');
return true;
}
}
}
</script>
Sorrowstfu
01-13-2006, 10:53 PM
bump
JPnyc
01-13-2006, 11:09 PM
Can you post the HTML part that you have? Do you have the text boxes and the form itself coded? If you do, I can give you a simple javascript for the login
Sorrowstfu
01-13-2006, 11:12 PM
</html>
</b>
</body>
</html>
<a href="http://www.endless-online.com/">Visit Endless HERE!</a>
<p>
<img src="http://endlesslegends.tripod.com/sitebuildercontent/sitebuilderpictures/header.jpg" width="640" height="168"> <html> <p>
<img src="http://img503.imageshack.us/img503/9061/warclan261672sb.gif" width="640" height="168">
</p>
<body>
<html>
<body>
<form>
<input type="button" value="Rankings!">
</form>
<form>
<input type="button" value="Sign Up">
</form>
<form>
<input type="button" value="Sign In">
</form>
</body>
</html>
<html>
<body> <h4 style="color:red">
Please rate this site 1-Best to 5-Needs Improvement </h4>
<select name="cars">
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
</select>
</form>
<input type="submit" value="Send">
</body>
</html>
<html>
<body>
</body>
</html>
<html>
<body background="http://www.guildwars.com/images/jpeg/wallpaper/guildwars_wallpaper_highres-warrior-ws1680.jpg" /></a>
<html>
<body>
<html>
<body>
<h1 style="color:red"><h4>Members:</h4>
<ol>
<li>CrossFader</li>
<li>Huji-a.k.a. Chris(me)</li>
<li></li>
</ol>
</body>
</html>
<html>
<body>
<h4>Enemies:</h4>
<ol>
<li>none that I know of</li>
</ol>
</body>
</html>
<html>
<body>
<h4>Allies:</h4>
<ol>
<li>none that I know of</li>
</ol>
</body>
</html>
<html>
<body>
<h4>Rankings:</h4>
<ol>
<li>Coming soon!</li>
</ol>
</body>
</html>
</font>
</p> </h1>
</body>
</html>
<BODY text=yellow bgColor=black onload="controlSound('play','document.CS1033758011623','fd.wav')"><EMBED name=CS1033758011623 src=http://www.xplorestudios.com/music/ut2k3/KR-Jugs-Entrance.mp3 width=300 height=50 hidden=false type=audio/mpeg LOOP="true" AUTOSTART="true" MASTERSOUND></EMBED>
Sorrowstfu
01-13-2006, 11:13 PM
Heres the entire script/html i have
</html>
</b>
</body>
</html>
<a href="http://www.endless-online.com/">Visit Endless HERE!</a>
<p>
<img src="http://endlesslegends.tripod.com/sitebuildercontent/sitebuilderpictures/header.jpg" width="640" height="168"> <html> <p>
<img src="http://img503.imageshack.us/img503/9061/warclan261672sb.gif" width="640" height="168">
</p>
<body>
<html>
<body>
<form>
<input type="button" value="Rankings!">
</form>
<form>
<input type="button" value="Sign Up">
</form>
<form>
<input type="button" value="Sign In">
</form>
</body>
</html>
<html>
<body> <h4 style="color:red">
Please rate this site 1-Best to 5-Needs Improvement </h4>
<select name="cars">
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
</select>
</form>
<input type="submit" value="Send">
</body>
</html>
<html>
<body>
</body>
</html>
<html>
<body background="http://www.guildwars.com/images/jpeg/wallpaper/guildwars_wallpaper_highres-warrior-ws1680.jpg" /></a>
<html>
<body>
<html>
<body>
<h1 style="color:red"><h4>Members:</h4>
<ol>
<li>CrossFader</li>
<li>Huji-a.k.a. Chris(me)</li>
<li></li>
</ol>
</body>
</html>
<html>
<body>
<h4>Enemies:</h4>
<ol>
<li>none that I know of</li>
</ol>
</body>
</html>
<html>
<body>
<h4>Allies:</h4>
<ol>
<li>none that I know of</li>
</ol>
</body>
</html>
<html>
<body>
<h4>Rankings:</h4>
<ol>
<li>Coming soon!</li>
</ol>
</body>
</html>
</font>
</p> </h1>
</body>
</html>
<BODY text=yellow bgColor=black onload="controlSound('play','document.CS1033758011623','fd.wav')"><EMBED name=CS1033758011623 src=http://www.xplorestudios.com/music/ut2k3/KR-Jugs-Entrance.mp3 width=300 height=50 hidden=false type=audio/mpeg LOOP="true" AUTOSTART="true" MASTERSOUND></EMBED>
JPnyc
01-13-2006, 11:34 PM
I think you should learn HTML before you do this. I'm amazed that page even displays, it's nowhere near a valid HTML document. I'm not gonna be able to do anything with that, sorry man.
Sorrowstfu
01-13-2006, 11:42 PM
well just damn just damn hahaha well its organized to my standars as a 14yr old
Sorrowstfu
01-13-2006, 11:43 PM
can you please just give me a simple java script?
JPnyc
01-13-2006, 11:44 PM
I can't, you don't even have any text boxes there. What is the script going to test the contents of?
Beyond that, it would be a miracle if any script would even function on that page. Every HTML doc. need just 1 set of HTML tags, 1 set of body tags, 1 set of head tags, and you have.............well.................lots of em.
Sorrowstfu
01-13-2006, 11:47 PM
you see....shut up....nah jk um i dont want text boxes the whole point of the web site is to pass it off as a real 1 and collect peoples passwords cause 60% of the time there to stupid to change there passes there all like universal passwords, were dealin with kids also!
JPnyc
01-13-2006, 11:48 PM
Ah, well in that case, thread locked, and if you post anything remotely like that again, your account would be suspended indefinitely. That's illegal and forbidden on this forum.