IbnSina said:
setcookie("ses_id",$cookie_value,time()+7200,"/","yourdomain.com");
Obviously, you will fill in the values for your program, rather than just using these. The time()+7200 gives the expiration for the cookie - here the current time + 7200 seconds; i.e. the cookie only lasts two hours.
It didn't work. Maybe If I sent you the script code you would know why.
There are two parts to my voting thing,
1) I named index,
2) I named training center.
The first one (index) is basically every thing you will see (I took out the stars and put it on another page). Here is the code;
<HTML>
<body style="color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);"
link="#3333ff" alink="#00cccc" vlink="#99ffff">
<!-- The following can be pasted anywhere on the page. Make sure the action goes to THIS page itself -->
<FORM method="post" action="TrainingCenterPage.php">
<SELECT name="your_rating">
<OPTION value="one">1</OPTION>
<OPTION value="two">2</OPTION>
<OPTION value="three">3</OPTION>
<OPTION value="four">4</OPTION>
<OPTION value="five">5</OPTION>
</SELECT>
<INPUT type="submit" value="rate!">
</FORM>
</BODY>
</HTML>
Yes I know it's html, I saved it as a php file though.
The second one is where all the information is stored, from the vote;
<?php $one = "0"; $two = "0"; $three = "0"; $four = "0"; $five = "1"; ?>
Very simple.
I thought, I would have to put it in the second file, but every time I put it in there and vote it deletes it (should have seen it coming).
So where would I put this code? Do I need another one for html? What's going wrong here? Thanks for any help

.