Monday, April 20, 2009

Extract from an array to a variable

reason is the name of the field in the form
reasonr is what we call the variable after

foreach($_POST['reason'] as $value) {
$reasonr .= "$value , ";

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
Web Design & Marketing - Click and get an instant quote on your project