I have this form (raffle_winner_form.htm) with the action in raffle_winner.php:
<form name="form1" method="post" action="raffle_winner.php"> <label> Max numbers: <input type="text" name="max"> </label> <p> <label> <input type="submit" name="submit" value="calculate"> </label> </form>
<?php session_start(); $session = session_id(); $number = mt_rand(1,$_POST[max]); ?>
My intention is to show the random number in a page that it is storing the session id with the generated number in an array and show it like:
www.example.com/raffle_winner.php?session_id=r4r4r4r44 for example.
Thank you in advance.