View Full Version : cookies

02-19-2007, 04:11 AM
cant get this code working... not used to JS cookies, used to PHP cookies:

function weather (form)
var TestVar = form.inputbox.value;

document.cookie = weather=TestVar;

trying to set the value of TestVar to a cookie named weather

02-19-2007, 07:13 PM
document.cookie = 'weather=' + TestVar;

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum