Hey, I have a quiz form that I made for a class. Once the user submits, my php script checks to see if the answers are all filled out. If not it sends them back to the form. However, the information is not repopulated, forcing the user to re-answer all the questions. I have some fields working but I'm not sure how to get the radio buttons to work. I have an idea but if anyone has a suggestion as to what is more efficient that would be cool too. The method I am trying to do is to store the values in cookies. Here's the code in my action script: [code]for($y=1; $y<21; ++$y) { setcookie("question[$y]", $question[$y]); }[/code] I don't think that is working though because when I try to echo the value of the cookie, I get nothing. The code looks right to me..since it matches the setcookie code I have above that, and it works. Unless I am not able to have a variable in the name of the cookie? Now once I get that working I was going to do this, this is the part I think is inefficient: [code]<? if($_COOKIE['question[1]'] == 1) { echo(" checked "); } ?> [/code] I would have to do that for each of my four options on all 20 questions ^_^. I just learned PHP in this last quarter of class and we didn't touch on cookies too much. So any help would be much appreciated. Thanks in advance, The14thGOD btw, sorry for the bad code format, I've never posted code before ^_^.