Fri Feb 29, 2008 12:01 pm - Php Form Using Array For Field Name Template User Information
#1891
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;
}
?>
';
$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);
}
}
?>