Checking $_POST var and stripping
| From: | Chris Grigor | Date: | Mon, 24 Jul 2006 10:12:29 +0000 |
| Subject: | Checking $_POST var and stripping | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-239721@lists.php.net to get a copy of this message | ||
Hi
Can anyone help with this ? its checking the $_POST and seeing if any of the
items begin with answer_,
if the do it should remove it from the beginning and place it into
$value_new.. does not seem to work though...
foreach($_POST as $qid => $value) {
$findme = 'answer_';
if(stripos($value, $findme)) {
$value_new = ltrim($value);
print "$value_new<br>";
}
}
Thanks
Chris