Re: A _post question I guess
| From: | John Taylor-Johnston | Date: | Mon, 29 Sep 2003 16:18:32 +0000 |
| Subject: | Re: A _post question I guess | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164263@lists.php.net to get a copy of this message | ||
Brad. Perfect thanks.
> Brad Pauly wrote:
> foreach ($_POST as $field_name => $field_value) {
> if (stristr($field_name, 'exercise')) {
> $content .= "$field_name = $field_value\n";
> }
> }
Tom, Not sure why, but wouldn't work
>Tom Rogers wrote:
>if(isset($_POST['exercise'])){
> foreach($_POST['exercise'] as $key=>$val){
> echo 'Key '.$key.' val '.$val.'<br>';
> }
>}
Thanks all.
P.S. I try to surf and contribute when I see something I can answer.
John