Originally Posted by dan-dan
You could maybe add a submit button?
<input type="submit" value="Restart" name="restart" />
Changed type="button" to type="submit"
Hmm I'm not quite sure if I go it. Is it possible to achieve same result without a restart button?
I can briefly explain my concept:
I have a main page where I click on a link and random questions start to pop up (questions are on sepperate .html pages with submit buttons to go to the next question). I made a .php file and added this code so I could randomize certain amount of questions and then redirect to main page again. Now everything works fine and does what I need, thanks to all the help
I was just conserned that If I close the questions' page, and then click on the link again then it does't open me questions' page anymore, but openes me the page where it is already redirected. It might not be a problem. But I was just thinking if someone wants to answer them again, they wouldn't probably think of deleting the cookies or closing the browser.