View Full Version : 2 question, hope for some help

Lawn Gnome
12-28-2005, 08:32 PM
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"

12-28-2005, 09:24 PM
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).

Lawn Gnome
12-28-2005, 11:55 PM
ok thx