RE: [PHP] financial application form
| From: | Jay Blanchard | Date: | Mon, 23 May 2005 12:49:09 +0000 |
| Subject: | RE: [PHP] financial application form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215734@lists.php.net to get a copy of this message | ||
[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.