Ask a question, click Add, in another page with the Post method to get the Bigclass value is the last row value, how to get the bank, that is, click once to add the value of the current row. Is it possible to use form?
Reply to discussion (solution)
Because your loop causes the Name property of input to be the same, the following will overwrite the previous one: Change the property name to an array form name= ' bigclass[] ' so that the value of the subclass and the Name property of the Submit button are changed as well
Because your loop causes the Name property of input to be the same, the following will overwrite the previous one: Change the property name to an array form name= ' bigclass[] ' so that the value of the subclass and the Name property of the Submit button are changed as well
Again weak weak ask, this change, how do I get bigclass value, $_post[bigclass] get is an array ...
Because your loop causes the Name property of input to be the same, the following will overwrite the previous one: Change the property name to an array form name= ' bigclass[] ' so that the value of the subclass and the Name property of the Submit button are changed as well
Again weak weak ask, this change, how do I get bigclass value, $_post[bigclass] get is an array ...
Print the array to see that each value should correspond to the value of the button you submit.
Print out is the bigclass of all lines, how to get the bigclass of the row to add,How do you add a sign?
Change name= ' Bigclass ' to Name= ' bigclass[] '
Go to Print_r ($_post[bigclass]) print it out to see
Each row is added with a form, and the value under the current form is taken when you add it.
It is good to identify a sequence in the Name property of the Submit button. For example write Name= "submit[" , so that you can get to click on which button. $key =$_post[' Submit ']; Take out the first element inside the $key $k, then $bigclass=$_post[' Bigclass ' [$k] to get the final result.
It is good to identify a sequence in the Name property of the Submit button. For example write Name= "submit[" , so that you can get to click on which button. $key =$_post[' Submit ']; Take out the first element inside the $key $k, then $bigclass=$_post[' Bigclass ' [$k] to get the final result.
Thank you, finally done!