SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict certify's Avatar
    Join Date
    May 2001
    Location
    Malaysia
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HELP - Login script won't work in IE5

    You can view the entire page at http://www.certifyexpress.com

    <script language="JavaScript">
    <!--
    var user_cookie = getCookie('ubber2452124.225');
    if(''==user_cookie || null==user_cookie) {
    document.writeln('You are not logged in.' , ' <a href="http://www.certifyexpress.com/cgi-bin/forum/ultimatebb.cgi?ubb=login">Login</a> or <a href="http://www.certifyexpress.com/cgi-bin/forum/ultimatebb.cgi?ubb=agree">Register</a>')
    } else {

    var user_array=user_cookie.split("&");
    user_array[2] = unescape(user_array[2]);
    document.writeln('Hello, ',user_array[2])

    document.writeln('[ <a href="http://www.certifyexpress.com/cgi-bin/forum/ultimatebb.cgi?ubb=logoff">'
    ,'<acronym title="Click here to log out.">'
    ,'log out</acronym></a> ]');

    }
    //-->
    </script>
    Your WebHosting Partner - RouterWebHost.com
    eXam SIMulation Software - ExamSim.net
    geeks forums -ProgrammingTutor.com
    BMWClub of Malaysia - BMWClub.com.my
    unofficial MU Fan Club coming soon - ManchesterUnited.com.my


  2. #2
    Xbox why have you forsaken me? moospot's Avatar
    Join Date
    Feb 2001
    Location
    Clearwater, FL
    Posts
    3,615
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have two <HEAD> sections..You should clean up the HTML first.

  3. #3
    SitePoint Addict certify's Avatar
    Join Date
    May 2001
    Location
    Malaysia
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've fix that but still won't work...
    Your WebHosting Partner - RouterWebHost.com
    eXam SIMulation Software - ExamSim.net
    geeks forums -ProgrammingTutor.com
    BMWClub of Malaysia - BMWClub.com.my
    unofficial MU Fan Club coming soon - ManchesterUnited.com.my


  4. #4
    ********* obeah makeda's Avatar
    Join Date
    Jun 2001
    Location
    rollin' on dubs
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    another thing that you can try...with your document.writeln statements, is to escape your quotation marks with '\':

    ex:

    document.writeln('You are not logged in.' , ' <a href=\"http://www.certifyexpress.com/cgi-bin/forum/ultimatebb.cgi?ubb=login\">Login</a> or <a href=\"http://www.certifyexpress.com/cgi-bin/forum/ultimatebb.cgi?ubb=agree\">Register</a>')


    i don't know if that helps? by the way, what isn't working? do you get an error or does it just not do what its supposed to?


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
  •