HTML is a stateless protocol. Usually you need external storage to remember anything. In your case I think there is a simple solution though. You can store the values in the link. Use something like print "<a href=\"dice.cgi?rolla=$rolla:rollb=$rollb\">roll again</a>". Check out the CGI documentation how you can access the parameter list
In reply to Re: saving a random number while generating a new one
by jethro
in thread saving a random number while generating a new one
by friar tux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |