I have a script that has something like this in it:
foreach ($_POST as $currentpost) {
echo $currentpost;
}
This code prints out all POST values. Is there a way I could limit which values the script outputs?
Example: let's say that I had a set of POST fields whose names started with "example," following by a number, as in the following: "example012," "example32," "exampleAB," etc. Could I grab the values of only these POST fields? In other words, if the name of the POST field started with "example," then it would print out the value of the POST field; otherwise, it would be ignored.
Thanks in advance!