SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Login Script

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2002
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Login Script

    Why won't this form work? Can someone show me how to fix it?

    <html><head><SCRIPT LANGUAGE="JavaScript"><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Beginfunction LogIn(){loggedin=false;username="";password="";username=prompt("Username:","");username=username.toLowerCase();password=prompt("Password:","");password=password.toLowerCase();if (username=="streetsonic" && password=="sonics") { loggedin=true;window.location="www.sonicfighters.com";}if (username=="streetsonic" && password=="sonics") {loggedin=true;window.location="www.sonicfighters.com";}if (loggedin==false) {alert("Wrong Username or Password!");}}// End --></SCRIPT><title>User Name</title></head><body><div align="center"><center><table border="0" cellpadding="0" cellspacing="4" width="94%"><tr><td valign="bottom" colspan="3"><p align="center"><img border="0" src="""header1.jpg" width="500" height="71"></td></tr><tr><td></td><td></td><td></td></tr><tr><td align="center"></td></tr><tr><td valign="top" width="48%"><p align="center">&nbsp;</p><p align="center"><b><font color="#FF0000">User Name:</font></b><br><input type="text" name="mem" size=16><br><b><font color="#FF0000">Password:<br></font></b><input type="password" name="pass" size=16><br><a href="""www.sonicfighters.com"><input type="button" value="Login" onclick="check(this.form);"></a><input type="button" value="Cancel" onclick="window.close();"></p><p>&nbsp;</p><p>&nbsp;</td><td width="4%"></td><td valign="top" width="48%"><p align="center"><img border="0" src="""soniccirc.gif" width="109" height="109"></p><p align="center"><a href="""www.sonicfighters.com"><input type="button" value="Sign Up" onclick="check(this.form);"></a></td></tr></table></center></div></body></html>
    Last edited by TheOriginalH; Mar 14, 2003 at 13:29.

  2. #2
    SitePoint Addict
    Join Date
    Mar 2003
    Location
    CA
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what form. there is no form on your page. only a bunch of jumbled garbage with some 'form ELEMENTS' sprinkled inside. Unravel the mess and be amazed at what you find and don't download any free scripts if you don't understand what they are doing.

  3. #3
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Location
    Cape Town, South Africa
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sheesh... i'm not going to sift through that mess. at least format and indent it properly before posting code
    Spartan
    ---------------------
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
    -Mr.Payne

  4. #4
    SitePoint Member
    Join Date
    Mar 2003
    Location
    nh
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WOW that is a mess

  5. #5
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Dr, resubmit the code, but this time type [/code] at the end and [code] at the beginning, it will retain its original formatting that way.

    It's clear you actually spent some time trying to make it more readable, but unfortunately the board doesn't quite work that way.
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS


Bookmarks

Posting Permissions

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