The "pass value" page at the front-end traverses the names and information of all teachers. to enable the function of selecting teachers for students, you need to click the "select" button, upload the selected instructor ID and the selected drop-down volunteer on the page to the background, In this way, the selected ID value cannot be obtained after submission. How to transfer the data?
Reply to discussion (solution)
What is your complete form code?
First, check whether the IDs in your form are duplicated.
Next, print the data you submitted and check var_dump ($ _ POST );
| Student ID: |
|
Student name: |
|
|
|
|
|
Round: First roundSecond round Total places:12 Selected:3 Not selected:9 |
|
|
|
|
What is your complete form code?
| Student ID |
Student Name |
Gender |
Age |
Credits |
Student Information |
Student Score |
Select student |
| <{$ List. xs_xh}> |
<{$ List. xs_xm}> |
<{$ List. xs_xb}> |
<{$ List. xs_nl}> |
<{$ List [xs_xf]}> |
View |
View |
Select Cancel |
| Student ID: |
|
Student name: |
|
|
|
|
|
Round: First roundSecond round Total places:12 Selected:3 Not selected:9 |
|
|
|
|
What is your complete form code?
| Student ID |
Student Name |
Gender |
Age |
Credits |
Student Information |
Student Score |
Select student |
| <{$ List. xs_xh}> |
<{$ List. xs_xm}> |
<{$ List. xs_xb}> |
<{$ List. xs_nl}> |
<{$ List [xs_xf]}> |
View |
View |
Select Cancel |
Thank you for solving the problem ..
|
|