Re: A _post question I guess

From: Date: Mon, 29 Sep 2003 15:55:22 +0000
Subject: Re: A _post question I guess
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-164260@lists.php.net to get a copy of this message
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 = $field_value\n"; > } > > Then just email $content. You could filter out the excerciseN fields if > you only wanted to send those.

« previous php.general (#164260) next »