0
votes

I have a form with selection drop down box... like this..

<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>

<select>
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select> 

I have selected option 2 from first selection, and selected 'a' from second selection drop down box and submitted the form and stored in the database. So I have selected 2 options, and a option from both drop down boxes.

Now I want to edit this selection drop down box again and update new value 3 from first selection drop down and second drop down same value no change.

Please provide some input on how to do this update successfully..

1
Have you tried anything? I don't see anything other than HTML code there.. - wiscWeb

1 Answers

0
votes

You'd have to print the HTML to the page dynamically from PHP.

Read the input from the form in the PHP and adjust the output accordingly.