var url = 'http://www.EnglishTeachingKorea.com/control_panel.php'; var cookie_str = cookie_str + new_action ; // make the string into a POST variable, cookie_str = 'action_monitor=' + cookie_str ; http.open("POST",url,true); http.onreadystatechange = handleResponse; http.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"); http.send(cookie_str); // pad first value now_time = now_time + delimiter; setCookie(cookie_name,now_time);