<html>
<head>
<script type = "text/javascript">
<!--
function WriteCookie() {
if( document.myform.customer.value == "") {
alert("Enter some value!");
return;
}
var now = new Date();
now.setMonth( now.getMonth() + 1 );
cookievalue = escape(document.myform.customer.value) + ";"
document.cookie = "name=" + cookievalue + "address=" + cookievalue; "password=" + cookievalue; "girlphone=" + cookievalue;
document.cookie = "expires=" + now.toUTCString() + ";"
document.write ("Setting Cookies : " + "name=" + cookievalue + "address=" + "value" + "password=" + "pass" + "girlphonevalue=" + "phone");
}
//-->
</script>
</head>
<body>
<form name = "myform" action = "">
Enter name : <input type = "text" name = "customer"/><br>
Enter address : <input type = "text" address = "address"/><br>
Enter password : <input type = "text" password = "pass"/><br>
Enter girlphonevalue: <input type = "text" girlphonevalue = "phone"/><br>
<input type = "button" value = "Set Cookie" onclick = "WriteCookie();"/>
</form>
</body>
</html>