<?php
// Loop through the fields in the POST and assign them to our internal variable.
// There are several special cases we need to handle differently, so we'll skip
// them for now.
foreach($_POST as $key=>$value) {
switch($key) {
case 'submit'; // Completely skip over the submit button
case "field_1";
case "/^a\ regex$/";
case "field_20";
default:
$myArray[$key] = $value;
}
}
?>