Php Form Using Array For Field Name Template User Information
Post Description: php form using array for field name template user information
php, form, using, array, for, field, name, template, user, information
This Post Has Been Viewed 308 Times Since Fri Feb 29, 2008 12:01 pm Posted By web hosting with 0 replies
POST# 1059
Posted On: Fri Feb 29, 2008 12:01 pm
Topic: Php Form Using Array For Field Name Template User Information
i often use this form template when i want to create a new form
$num_fields = 18;
function tidy ($form_string) {
$form_string = trim(stripslashes($form_string));
return $form_string;
}
?>
';
}
?>
// The data comes from the form in fig 4.2
if(isset($_REQUEST['Submit']))
{
foreach($_POST['user'] as $key => $line) {
$user = tidy($line);
print("n
User[" . $key . '] ' . $user);
}
}
?>