in reply to Quick Param Question
You may be interested in CGI::FormBuilder the docs have an example that goes a little something like this
# snipped creation of form object if ($form->submitted && $form->validate) { # Get form fields as hashref my $field = $form->fields; # Do something to update your data (you would write this) do_data_update($field->{lname}, $field->{fname}, $field->{email}, $field->{phone}, $field->{gender}); # Show confirmation screen print $form->confirm(header => 1); } else { # Print out the form print $form->render(header => 1); }
Update Here the form's validation rules will prevent the one id parmeter from having your code believe that the form has been submitted
|
|---|