I have a form that looks like this:
$guests = 2; // Just for testing
$form = 'Guests<br /><select name="guests">
<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>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>';
But the list of guests can be up to 100, so I probably shouldn’t do a check for which value is selected manually.
What would be a good way for me to make the selected value become the selected value when the user sees this form?
Thanks!
EDIT:
$i < 101was pretty lame…