[snip]
I have a large application form (financial) which I have working fine
but I
need to be able to have it either work as a single application or a
joint
one. If joint it needs to display two forms for the user to fill in. I
am
just wondering how I can do this without having to write a second form
as
there are 8 pages (around a hundred fields) to this form and I don't
fancy
modifying all of the vars and fields to do this. If anyone knows how or
can
point me in the right direction, id be most thankful.
[/snip]
There could be several ways to do this. One would be to set a variable
to the value 'joint_' (or some other value) and append that to the
variables of the second form once the first form is complete
$2nd_form_var_prefix = 'joint_';
if(complete == $all_first_form_vars){
$2nd_form_vars = $2nd_form_prefix . $1st_form_var_name;
}
Something like that.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php