I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts.
My latest project for a customer has over 40 items in the form. It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options selected.
My question is, due to the varying numbers of $_POST results that I may get, is there a more efficient way of getting the $_POST values?
I've done a lot of searching here and on Google, but so far I've come up short. This is the closest thing that I've found:
foreach($_POST as $name => $value) {
print "$name : $value<br>";
}
Now, I wouldn't be printing the name and value, but would modifying this actually work? Does anyone know of a more efficient way?