Re: [PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
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'])){

Re: [PHP] A _post question I guess

2003-09-29 Thread Brad Pauly
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

Re: [PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
Ok, but the problem is that I will, might have other fields. I need to filter out just the exerciseN fields. Interesting though thanks, John Brad Pauly wrote: > You could just loop over the _POST array. > > foreach ($_POST as $field_name => $field_value) { > $content .= "$field_name = $f

Re: [PHP] A _post question I guess

2003-09-29 Thread Tom Rogers
Hi, Tuesday, September 30, 2003, 1:41:11 AM, you wrote: JTJ> I have a form. It has any number of hidden fields, named "exercise JTJ> 1-100". Their names all start with "exercise" as in: JTJ> JTJ> ... ? JTJ> JTJ> any number fo these possible ... JTJ> JTJ> How can I create one scipt that will r

Re: [PHP] A _post question I guess

2003-09-29 Thread Brad Pauly
John Taylor-Johnston wrote: I have a form. It has any number of hidden fields, named "exercise 1-100". Their names all start with "exercise" as in: ... ? any number fo these possible ... How can I create one scipt that will recognise all of them? Any number of them. My idea is a bit like formma

[PHP] A _post question I guess

2003-09-29 Thread John Taylor-Johnston
I have a form. It has any number of hidden fields, named "exercise 1-100". Their names all start with "exercise" as in: ... ? any number fo these possible ... How can I create one scipt that will recognise all of them? Any number of them. My idea is a bit like formmail.pl that reads any old