Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Monday Morning Quickie

Status
Not open for further replies.

DigitalBoy

Programmer
Oct 11, 2000
87
US
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=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<SCRIPT src=&quot;cookie_ratings.js&quot; language=&quot;Javascript&quot;></SCRIPT>
<script language=&quot;Javascript&quot;>
<!--
var exp = new Date();
exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 31));
-->
</script>
</head>

<body bgcolor=&quot;#FFFFFF&quot;>
<form method=&quot;post&quot; action=&quot;&quot;>
<table>
<tr>
<td width=&quot;5&quot;>
<input type=&quot;radio&quot; name=&quot;ratingsGroup&quot; value=&quot;nr&quot;>
</td>
<td><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot; color=&quot;#000000&quot;>NR</font></b></td>
</tr>
<tr>
<td width=&quot;5&quot;>
<input type=&quot;radio&quot; name=&quot;ratingsGroup&quot; value=&quot;g&quot;>
</td>
<td><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot; color=&quot;#000000&quot;>G</font></b></td>
</tr>
<tr>
<td width=&quot;5&quot;>
<input type=&quot;radio&quot; name=&quot;ratingsGroup&quot; value=&quot;pg&quot;>
</td>
<td><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot; color=&quot;#000000&quot;>PG</font></b></td>
</tr>
<tr>
<td width=&quot;5&quot;>
<input type=&quot;radio&quot; name=&quot;ratingsGroup&quot; value=&quot;pg13&quot;>
</td>
<td><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot; color=&quot;#000000&quot;>PG13</font></b></td>
</tr>
<tr>
<td width=&quot;5&quot;>
<input type=&quot;radio&quot; name=&quot;ratingsGroup&quot; value=&quot;r&quot;>
</td>
<td><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot; color=&quot;#000000&quot;>R</font></b></td>
</tr>
<tr>
<td width=&quot;5&quot;>
<input type=&quot;radio&quot; name=&quot;ratingsGroup&quot; value=&quot;nc17&quot;>
</td>
<td><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot; color=&quot;#000000&quot;>NC17</font></b></td>
</tr>
<tr>
<td width=&quot;5&quot;>
<input type=&quot;radio&quot; name=&quot;ratingsGroup&quot; value=&quot;x&quot;>
</td>
<td><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;4&quot; color=&quot;#000000&quot;>X</font></b></td>
</tr>
</table>
<br>
<br>
<input type=&quot;submit&quot; name=&quot;createCookie&quot; value=&quot;Create Cookie&quot; onClick=&quot;setCookie('ratingsGroup','[value]',exp)&quot;>
</form>
</body>
</html> dgtlby@excite.com
Administrator

UBB Developers Network

 
Ok, I got the cookie part working. Now I have a question about cookies (in NS primarily because that is the browser that is most like the browser I am developing for.)

The following is a typical cookie. I can define some parts but not all of them. Any help would be appreciated:

.excite.com TRUE / FALSE 1212121212 name data
[domain] [?] / [?] [?] [data] [value]

I know that one of those T/F is a value for &quot;secure&quot; but I'm not sure which. also, the long string of numbers, would that be the path?

- DB

dgtlby@excite.com
Administrator

UBB Developers Network

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top