News

Log In Sponsors
Partner Sites
Call India from USA: cheap india phone cards at phonecardsavenue

International calling? Check out calling cards



Help with cookies



Hello I have the following code, and I can not get it to work correctly. Any help would be greatly appreciated. [code] <SCRIPT LANGUAGE="JavaScript"> <!-- function SetCookie(cookieName,cookieValue,nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString()+ 'path=/;domain=can-labels.com'; } //--> </SCRIPT> <form name="frmMCQuotes" id="frmMCQuotes" action="feedback.php" method="post" > <table> <tr> <td width="77"><span class="style5"><b> City:</b></span></td> <td width="263"><input type="text" name="Shipping-City" id="txtCityShip" size="20" maxlength="20" /></td> </tr> <tr> <td width="85"><input type="button" value="Calculate" name="btnCalcBC" onClick="SetCookie('ShippingCity',this.form.Shipping-City.value,'1')"/></td> </tr> </table></form> [/code]

Click here to read the whole forum topic