about how to get the ID of the value that the pull-out box loops out
Source: Internet
Author: User
about how to get the ID of the value that the dropdown box loops out of
The data for my drop-down box is the loop-through code from the database as follows
while ($row _all = mysql_fetch_array ($query _all)) {?>
I put it in the form, and I want to get the ID of the selected content after I submit it
What should I get on the next page, maybe my dropdown box id attribute did not add, I do not know how to add, please expert advice, thank you
------Solution--------------------
How does the caption get the ID of the value that the dropdown box loops out of? So you're going to have to assign an ID to the loop?
Make a hidden JS trigger on this page. Specific code you have to look for, I JS also unfamiliar, detailed forget, can not mislead you
function Addid () {//Get selected id//write a hidden value
}
When you submit the form, it will pass selectid the past ... But what's the point of passing this ID?
------Solution--------------------
while ($row _all = mysql_fetch_array ($query _all)) {?>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.