Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2 question, hope for some help

    first. i got a script from the "post a javascript" thing. but i want help adding on to it. it uses the name of a .js file to login, but is there a way for someone to fill out a forum, then after they submit it, it make a .js file and sends me the info? so like u fill out the foum and then in a folder it makes a file.

    second. how would u use a cookie to check if someone is logged in?

    if this sound confussing go to the "post a javascript" and click on the one called "Secure Login with javascript"

  • #2
    New Coder
    Join Date
    Dec 2005
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts
    1. JS cannot write/edit a file on your server. For this you will have to use a server side script such as PHP or ASP.

    2. That all depends on your login script. Inside your login script you create a cookie (a cookie is a variable that you temporarily save to a users computer) and then have another script to check and see if that cookie exists (or what its value is).

  • #3
    New Coder
    Join Date
    Jul 2005
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok thx


  •  

    Posting Permissions

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