For more information about how to obtain the id of the value cyclically returned from the drop-down box, the data in the drop-down box is obtained from the following code: & lt; selectname & quot; name & quot; & gt; & lt ;? Phpwhile ($ row_allmysql_fetch_array ($ query_all )){? & Gt; & lt; option & gt; & lt ;? Phpecho $ row_all [about how to obtain the id of the value cyclically generated from the drop-down box
The data in the my drop-down box is obtained from the database cyclically as follows:
While ($ row_all = mysql_fetch_array ($ query_all) {?>
I put it in form. after submission, I want to get the id of the selected content
Then how can I get it on the next page? maybe the id attribute in my drop-down box is not added. I don't know how to add it. please kindly advise. thank you.
------ Solution --------------------
How does the title obtain the id of the cyclically generated value from the drop-down box? Then you can assign the id in the loop.
$ I = 0;
While ($ row_all = mysql_fetch_array ($ query_all) {?>
$ I ++;
Make a hidden js trigger on this page. you have to look for the specific code. I am not familiar with js. I forgot the details and cannot mislead you.
Function addid (){// Obtain the selected id// Write a hidden value
}
In this way, the selectid will be passed when the form is submitted... but what is the significance of passing this id?
------ Solution --------------------
While ($ row_all = mysql_fetch_array ($ query_all) {?>
Receive Page $ _ POST ['name.