There is a form that cannot be changed.
It passes variables to POST.
Example
array(20) { ["posted"]=> string(4) "true" ["platel"]=> string(4) "test" ["address"]=> string(24) "Tomsk Vershinina 39a 527" ["mobil"]=> string(1) "1" ["email"]=> string(17) "votanko@gmail.com" ["goods1"]=> string(8) "product1" ["kod1"]=> string(6) "634000" ["qantity1"]=> string(2) "10" ["price1"]=> string(4) "1000" ["comments1"]=> string(3) "Red" ["goods2"]=> string(8) "product2" ["kod2"]=> string(6) "634000" ["qantity2"]=> string(2) "20" ["price2"]=> string(4) "2000" ["comments2"]=> string(4) "Blue" ["dostavka"]=> string(1) "1" ["transport_kompaniya"]=> string(0) "" ["moskaw_address"]=> string(0) "" ["oplata"]=> string(1) "1" ["Submit"]=> string(9) "Отправить" } How can I find the number of all elements of the category $ _POST ['goods'].
That is, in this example, there are two $ _POST ['goods1'] $ _POST ['goods2']