[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; > } [/snip] Hi jay, Many thanks for the advice and sorry its taken so long to respond. I can see your solution working but I am not sure how I can append $2nd_form_var_prefix to the existing vars without manually adding this to each one. I guess id have to get everything into an array? My boss/client wishes to have both forms displayed simultaneously, PITA! So that considered, maybe ill just have to have 2 separate forms. Thanks again for your help Dave Sayer | Digital Meme Freelance web design/development Tel: 01225 311547 Mob: 07795388109 Email: dave@xxxxxxxxxxxxxxx Web: http://www.digitalmeme.com > -----Original Message----- > From: Jay Blanchard [mailto:jay.blanchard@xxxxxxxxxxxxxxxxxxxxx] > Sent: 23 May 2005 13:49 > To: dave@xxxxxxxxxxxxxxx; php-general@xxxxxxxxxxxxx > Subject: RE: financial application form > > [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. > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005 > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.16 - Release Date: 24/05/2005 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php