DigitalBoy
Programmer
I am testing a new cookie script (see code below). I want to write to the value of ratingsGroup to the cookie. My question is, what do I replace [value] with? Thanks in advance.
- DB
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT src="cookie_ratings.js" language="Javascript"></SCRIPT>
<script language="Javascript">
<!--
var exp = new Date();
exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 31));
-->
</script>
</head>
<body bgcolor="#FFFFFF">
<form method="post" action="">
<table>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="nr">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">NR</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="g">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">G</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="pg">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">PG</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="pg13">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">PG13</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="r">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">R</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="nc17">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">NC17</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="x">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">X</font></b></td>
</tr>
</table>
<br>
<br>
<input type="submit" name="createCookie" value="Create Cookie" onClick="setCookie('ratingsGroup','[value]',exp)">
</form>
</body>
</html> dgtlby@excite.com
Administrator
UBB Developers Network
- DB
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT src="cookie_ratings.js" language="Javascript"></SCRIPT>
<script language="Javascript">
<!--
var exp = new Date();
exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 31));
-->
</script>
</head>
<body bgcolor="#FFFFFF">
<form method="post" action="">
<table>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="nr">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">NR</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="g">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">G</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="pg">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">PG</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="pg13">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">PG13</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="r">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">R</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="nc17">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">NC17</font></b></td>
</tr>
<tr>
<td width="5">
<input type="radio" name="ratingsGroup" value="x">
</td>
<td><b><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">X</font></b></td>
</tr>
</table>
<br>
<br>
<input type="submit" name="createCookie" value="Create Cookie" onClick="setCookie('ratingsGroup','[value]',exp)">
</form>
</body>
</html> dgtlby@excite.com
Administrator
UBB Developers Network