dcsimg
www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: Registration On site/ Login and Sign Up

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    12

    Registration On site/ Login and Sign Up

    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/ne...ote=1&p=495289
    Share on Google+

  2. #2
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    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.
    Share on Google+

  3. #3
    Join Date
    Jan 2006
    Posts
    12
    Continue what do I do I dont care bout the username/passwords its a low priority site
    Share on Google+

  4. #4
    Join Date
    Jan 2006
    Posts
    12
    Quote Originally Posted by JPnyc
    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
    Share on Google+

  5. #5
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    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
    Share on Google+

  6. #6
    Join Date
    Jan 2006
    Posts
    12
    Quote Originally Posted by JPnyc
    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
    Share on Google+

  7. #7
    Join Date
    Jan 2006
    Posts
    12
    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>
    Share on Google+

  8. #8
    Join Date
    Jan 2006
    Posts
    12
    bump
    Share on Google+

  9. #9
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    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
    Share on Google+

  10. #10
    Join Date
    Jan 2006
    Posts
    12
    </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>
    Share on Google+

  11. #11
    Join Date
    Jan 2006
    Posts
    12
    Heres the entire script/html i have
    Quote Originally Posted by Sorrowstfu
    </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>
    Share on Google+

  12. #12
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    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.
    Share on Google+

  13. #13
    Join Date
    Jan 2006
    Posts
    12
    well just damn just damn hahaha well its organized to my standars as a 14yr old
    Share on Google+

  14. #14
    Join Date
    Jan 2006
    Posts
    12

    d

    can you please just give me a simple java script?
    Share on Google+

  15. #15
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    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.
    Share on Google+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles