Unfortunately, the only way you are going to get this is to use the GET method instead of the POST method. And when you do, you are going to have to weed out all the variables passed to get what you want. Use the following script to do that:
<?
$fruits = $QUERY_STRING;
unset($fruit);
$fruits = explode("&", $fruits);
for($i = 0; $i < count($fruits); $i++) {
$a = explode("=", $fruits[$i]);
for($j = 0; $j < count($a); $j++) {
if($j == 1) {
$fruit[$i] = $a[$j];
}
}
}
for($i = 0; $i < count($fruit); $i++) {
echo("<br>$fruit[$i]");
}
?>
NOTE that the variable $QUERY_STRING is Apache, I don't know if it works on other servers or what their equivalent is. The unset command is only necessary if you are using the same variable name as you assigned in the form to create your array. To see what happens if you omit it, comment it out and run this script, fun!
Drawbacks: If this is a long form with alot of input, you are in for a bit of fun getting what you want, good thing is this script will assign all variables to the array, bad thing is you have to figure out which piece of the array is the correct variable. Once you do, though, it won't change, unless of course you change your form with more variables.
HTH,
Jim