Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Thanked 0 Times in 0 Posts

    Log Out/Off Code

    I am new to HMTL and to programming itself. I joined this forum to see what I could learn. Please have a little patience with me.

    I recently purchased a program called WWW File Share Pro. I am going to use this program to share files with members of my family (documents, photos, etc.).

    The following "snipets" (?) of code appear in the HTML options of the WWW File Share Pro program itself (see attached image 9-13-2008 9-02-56 AM):

    Click <a href="JavaScript:history.back()">&lt;&lt;&lt;Back</a> or <a href="JavaScript:history.back()"><img src="/icon15.gif" width="16" eight="16" border="0"></a> to go back.

    Click <a href="/">Home</a> to visit homepage.

    Click <a href="/upload1.htm">Upload</a> to upload file.

    Immediately after setting up and running the program, I discovered that there was NO way to actually "log off" or "log out" of the program when the user completes whatever tasks he/she so desires. I have attached images of the "html options" page, the "login" screen (IP address obliterated), and the "user" screen.

    The only options available to the user are as follows (see image 9-13-2008 9-07-54 AM):


    I would like to add a "Log Off" or "Log Out" option so that the user could click a link to log out, instead of just closing the web page itself.

    Is there anyone on this forum that could assist me with adding the proper code to make a log out link? Is it even possible?

    I would also like to learn more about HTML programming. Can someone recommend a good book on HTML? I don't really understand that much about HTML, so I'll definitely need a book geared to the absolute beginner.

    Any assistance with this would be much appreciated.


    Joseph Y.
    Attached Thumbnails Attached Thumbnails Log Out/Off Code-9-13-2008-9-02-56-am.jpg   Log Out/Off Code-9-13-2008-9-04-37-am.jpg   Log Out/Off Code-9-13-2008-9-07-54-am.jpg  

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Minneapolis, MN
    Thanked 65 Times in 56 Posts
    Hey Joseph,

    The first thing you should know is that HTML is a descriptive language (i.e., a "markup" language) and doesn't actually DO anything. It only says what other elements are.

    So if you're looking to write some code that'll log you out of a session, you need to write it in the language you are working with…in this case it looks to be Javascript. Unfortunately, since I'm not familiar with your program, I have no idea what code will log you out of the program. If you can post some of the code that makes the login function work (I'm taking about the finished, rendered code that gets generated by the program) then maybe someone here can help.

    As far as books, I can't recommend one offhand but I really like these online tutorials by HTML Dog: http://htmldog.com/guides/htmlbeginner/

  • #3
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Thanked 15 Times in 15 Posts
    Moved per user request

    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000


    Posting Permissions

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