Hi there, im still not confident with my mod for confirmation after add and modify.
Have some things changed. Now first add something then the data is proved then the confirmation comes up.
(Bevore you must first confirm then tru the proving)
Cause its not very language- and user-friendly, i have erased the error-message (Title not filled up ...)
now im looking for the following:
In add.cgi:
# Validate the form input..
$rec = &cgi_to_hash ( $in );
$id = $val->add_record ( $rec, $in );
##--## Ok?
if ($id) { ......
Here i need a function that erases all fields not ok for the validate table.
Why?
If user comes to the add_error, he gets all filled in values into the form-fields; i want this values to be erased
or to set to "error" or the best version: erased and a small new tag set that marks the field.
(I have happilly remarked that the if, ifnots are working in the add_templates. I really love this script.
Robert
Have some things changed. Now first add something then the data is proved then the confirmation comes up.
(Bevore you must first confirm then tru the proving)
Cause its not very language- and user-friendly, i have erased the error-message (Title not filled up ...)
now im looking for the following:
In add.cgi:
# Validate the form input..
$rec = &cgi_to_hash ( $in );
$id = $val->add_record ( $rec, $in );
##--## Ok?
if ($id) { ......
Here i need a function that erases all fields not ok for the validate table.
Why?
If user comes to the add_error, he gets all filled in values into the form-fields; i want this values to be erased
or to set to "error" or the best version: erased and a small new tag set that marks the field.
(I have happilly remarked that the if, ifnots are working in the add_templates. I really love this script.
Robert