Home › Forums › ACF PRO › Adding Repeater Rows on PHP POST › Reply To: Adding Repeater Rows on PHP POST
You have text fields that have the same name. When the form is input, only the last field with that field name will be submitted. You can see this if you print out the value of $_POST
echo '<pre>'; print_r($_POST); echo '</pre>';
If you want to have multiple fields with the same name then you need to set up arrays to handle them. For example:
<input type="text" name='rows[0][ppu]' />
<input type="text" name='rows[1][ppu]' />
etc....
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.