Sometimes the front page needs to allow dynamic addition/deletion of multiple values of a certain attribute, such as adding books to a bookshelf, and needs to be able to dynamically add or delete books.
There will be multiple input elements in the form on the front page, as follows:
Copy code The code is as follows:
When the a.php page receives the form data, you can use $books = $_REQUEST['books']; to get an array of all book titles.
http://www.bkjia.com/PHPjc/743924.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/743924.htmlTechArticleSometimes the front page needs to allow dynamic addition/deletion of multiple values of a certain attribute, such as adding books to a bookshelf. Books can be added or deleted dynamically. There will be multiple forms in the front page...