Simple....add a form variable called 'numberofentries'.
If defined loop and create a X entries each suffixed by a number 1..X set an
invisible variable to the number requested. Action for the form should be to
some sort of insertentries.cfm
If not defined display a form which asks how many entries would you like to
make with the action to re-submit to the same form.
On submissio, the insertentries.cfm should loop X times and attempt an
insert. Make a check to make sure data exists for each entry.
Adam Reynolds
ColdFusion Consultant
HJ Heinz
Tel: 01344 397016 Fax: 01344 397010
Mobile: 07973 386620
Email: [EMAIL PROTECTED]
> ----------
> From: Paul Ihrig[SMTP:[EMAIL PROTECTED]]
> Sent: 22 May 2000 12:57
> To: [EMAIL PROTECTED]
> Subject: Dynamic Forms in CF [How To?]
>
> Hello.
> I have a project set up for here that i need to recreate in CF.
> Half way through it, there is a section for team members on the project
> 01-12.
>
> 01 Team Members Full Name [Drop Down]
> Needs Training [checkbox]
> Laptop [checkbox]
> Foreign Language Operating System [checkbox]
>
> well, sometimes the manager filling in the form will only add a few team
> members,
> sometimes they may have more then 12 people on a team.
>
> So how can i build a form that first has a drop down or text are that asks
>
> How many team members do you have?
>
> Then Dynamically creates the fields needed?
>
> Would i need to break the form into several pages?
>
> After storing the info i also need to email the content to several people.
>
> I have all the standard books.
> if you know chapter & page # that may have the answer i need that would be
> cool too!
>
> Also If any one has any experience grabbing content/data from Semaphore,
> Please contact me.
>
> Thanks again.
> -paul
> --------------------------------------------------------------------------
> ----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
**********************************************************************
This email and any attachments are confidential and solely
for the use of the intended recipient. They may contain
material protected by legal professional or other privilege.
If you are not the intended recipient or the person responsible
for delivering to the intended recipient, you are not authorised
to and must not disclose, copy, distribute or retain this email
or its attachments. Although this email and its attachments
are believed to be free of any virus or other defect, it is the
responsibility of the recipient to ensure that they are virus free
and no responsibility is accepted by the company for any
loss or damage arising from receipt or use thereof.
**********************************************************************
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.