I have an html form with a section that generates inputs with random names.
Each input name is generated with the text “book” at the beginning and random text at the end.
<input type="text" name="book_4552f" />
<input type="text" name="book_3507p" />
<input type="text" name="book_8031b" />
How do I use PHP to get all $_POST variables which start with the text “book”?
The following uses strpos() to check that the POST string begins with book_