Thank you to for going to all the trouble! It seems the script behaves oddly though.
It works fine at first, when you enter the name and click "Add New Pet". It shows:
POST: Array ( [text] => Fluffikens [other] => Kitty [count] => [btnadd] => Add New Pet )
retain: Array ( [text] => Fluffikens [other] => Kitty [count] => [btnadd] => Add New Pet )
while retaining the date in the fields, and showing a new set of blank fields.
But then when you fill out the second fields (ex. "Spot", "Doggy"), the output is:
POST: Array ( [text] => Spot [other] => Doggy [count] => [btnadd] => Add New Pet )
retain: Array ( [text] => Spot [other] => Doggy [count] => [btnadd] => Add New Pet )
And in the first fields are the Spot/Doggy information, the secondary fields are blank, and there is no third blank set of fields.
I saw that there's two hidden 'count' input fields, but taking one out didn't really make a difference. And it's still possible with the script to remove the first field set, but that has to stay. Any ideas?