For example I have 3 variables and I sent 2 of them to result.php
$_POST['apple']; $_POST['peach']; $_POST['kiwi'];
Q: How can I count posted variables in result page ?
note: I don't know how many variables I sent
Use count:
echo count($_POST);