I have a form for simplicity has two drop down list as indicated below with a selected value for each:
Maximum number of Primary Drivers per Team: <select size="1"
name=max_drivers>< option value="1" selected><? echo $rs[1] ?><? echo $max ?></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>
<option value="10">10</option>
<\SELECT></select><br>
Maximum number of Back-up Drivers per Team: <select size="1"
name=max_backup_drivers>< option value="1" selected><? echo $rs[2] ?><? echo $max ?></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>
<option value="10">10</option>
The values are changed by the user and submitted to a MYSQL database. The form also has a select statement to return the save values.
The question is how do I display the return values to the user and if the user only changes one of the values then submits again then the unchanged drop down list seems to be defaulting to the selected value rather than the returned value.
Thanks
Jerry
Maximum number of Primary Drivers per Team: <select size="1"
name=max_drivers>< option value="1" selected><? echo $rs[1] ?><? echo $max ?></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>
<option value="10">10</option>
<\SELECT></select><br>
Maximum number of Back-up Drivers per Team: <select size="1"
name=max_backup_drivers>< option value="1" selected><? echo $rs[2] ?><? echo $max ?></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>
<option value="10">10</option>
The values are changed by the user and submitted to a MYSQL database. The form also has a select statement to return the save values.
The question is how do I display the return values to the user and if the user only changes one of the values then submits again then the unchanged drop down list seems to be defaulting to the selected value rather than the returned value.
Thanks
Jerry