Reply to RE: [PHP] financial application form

Your name:

Reply:


Posted by "Dave Sayer" on 05/25/05 19:50

[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@digitalmeme.com
Web: http://www.digitalmeme.com
> -----Original Message-----
> From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com]
> Sent: 23 May 2005 13:49
> To: dave@digitalmeme.com; php-general@lists.php.net
> Subject: RE: [PHP] 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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация