How save a variable value after submit button is clicked?
Posted on 2015-02-09
My page displays a table with days of the month, on each day there is a radio button, so the user clicks on the radio button of the day he select, once the day is selected, I save the number of the selected day in a variable $day, then, he click on the submit button to display another table that contains hours of the day.
The problem is when the submit button is clicked, the variable $day becomes empty.
I'm using this action:
<form action="<?PHP echo $_SERVER['PHP_SELF'] ?>" method="post">
Please guys can you help me on how to save the value of my variable after the submit button is clicked.