John Taylor-Johnston wrote:
Ok, but the problem is that I will, might have other fields. I need to filter out just the exerciseN fields. Interesting though thanks,

Then just look at $feild_name and see if it is one of the 'exercise' fields.


foreach ($_POST as $field_name => $field_value) {
    if (stristr($field_name, 'exercise')) {
        $content .= "$field_name = $field_value\n";
    }
}

- Brad

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to