Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
mostlySimple #1
Multiple Form Database Inputs
I have a paragraph with multiple html drop down boxes scattered throughout and
a hidden field assigned to it for ID puposes. Problem is when I have more than
1 paragraph in a page and try to do a database insert looping through the ID's
is easy, the problem is the mulitple dropdowns don't insert correctly....end up
all together instead of seperated. Any ideas???
mostlySimple Guest
-
user inputs form color change
I have a form that has a row of fields. I need the user to be able to choose different colors in those fields and then submit the form. The reciever... -
Building Query criteria dynamically based on Form inputs
I need to dynamically build a db query based on form inputs; this such a typical thing I am hoping someone can shortcut me to a more elegant... -
update multiple records in multiple tables from one form
hello I have been trying to run multiple update queries based on the data entered by user. Brief background: I am fetching data from various... -
Variable inputs on a form
Is it possible to change the option value according to the date? <cfselect name='reg_fee'> <option value='pre_01_05'>?190.00 <option... -
User inputs token from web form
I have the need to have the web user input a variable from a form field and capture that field information into a token on the web page to be... -
mostlySimple #2
Re: Multiple Form Database Inputs
Forget it.....I usedt he #evaluate()# functiont to complete task.....
Originally posted by: mostlySimple I have a paragraph with multiple html drop
down boxes scattered throughout and a hidden field assigned to it for ID
puposes. Problem is when I have more than 1 paragraph in a page and try to do a
database insert looping through the ID's is easy, the problem is the mulitple
dropdowns don't insert correctly....end up all together instead of seperated.
Any ideas???
mostlySimple Guest
-
Mike Nimer #3
Re: Multiple Form Database Inputs
can you post some code?
---nimer
"mostlySimple" <webforumsuser@macromedia.com> wrote in message
news:cv4u0s$47k$1@forums.macromedia.com...> Forget it.....I usedt he #evaluate()# functiont to complete task.....
> Originally posted by: mostlySimple I have a paragraph with multiple html
> drop
> down boxes scattered throughout and a hidden field assigned to it for ID
> puposes. Problem is when I have more than 1 paragraph in a page and try to
> do a
> database insert looping through the ID's is easy, the problem is the
> mulitple
> dropdowns don't insert correctly....end up all together instead of
> seperated.
> Any ideas???
>
Mike Nimer Guest
-
mostlySimple #4
Re: Multiple Form Database Inputs
<cfset counter = 0> <cfloop index='I' list='#form.stateID#'> <cfset counter =
counter+1> <cfquery datasource='#ds#' username='#username#'
password='#password#'> INSERT INTO hpReports
(jobid,clientid,catid,stateid,canid) VALUES
(#form.jobid#,#form.clientid#,#form.catID#,'#listg etat(stateid,counter)#','#eval
uate('form.dropID#I#')#') </cfquery> </cfloop>
mostlySimple Guest



Reply With Quote

