I have two selection boxes, each with a number from 1-4, upon a button being hit i am setting a session for the number that is selected. However i want to echo the session if its set, and if not list the options 1-4. However its just displaying blank?
<?php
if(isset($_SESSION['s_score1'])){ //echoes currently set score
echo $_SESSION['s_score1'];
}else {
echo "<option value='0'>0</option>
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
<option value='4'>4</option>";
}
?>