unrelenting Posted September 13, 2008 Share Posted September 13, 2008 I have a form that has checkboxes for selecting different fields in a search. They can choose 1 or 16. I need to know how many are going to be displayed in my table so I can use a proper colspan number. How can I get the total number of variables being sent from my form page? Quote Link to comment https://forums.phpfreaks.com/topic/124108-solved-how-do-you-count-number-of-variables-sent-via-_post/ Share on other sites More sharing options...
wildteen88 Posted September 13, 2008 Share Posted September 13, 2008 Use count($_POST) to get the number of post variables. Quote Link to comment https://forums.phpfreaks.com/topic/124108-solved-how-do-you-count-number-of-variables-sent-via-_post/#findComment-640723 Share on other sites More sharing options...
unrelenting Posted September 13, 2008 Author Share Posted September 13, 2008 Perfect. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/124108-solved-how-do-you-count-number-of-variables-sent-via-_post/#findComment-640730 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.