PDA

View Full Version : Add cookie before executing script



monkeyboy
01-24-2006, 05:39 PM
Hi there. I've been using a password encryption script a lot like the one here (http://www.dynamicdrive.com/dynamicindex9/password.htm). Now I want to add another function to the code.

The code I'm using is below... what I'm trying to do is, if a user enters a correct password, to write a cookie called "access" (of no particular value) to the user's computer before sending them to location.href.

Am really very new at this, so any help (and words of one syllable) much appreciated! :)





go()

else

inc()

}

}

function go(){

location.href=pass+".htm";

}

</SCRIPT>