Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfset web page elements 1

Status
Not open for further replies.

fremont

Programmer
Jun 28, 2004
2
0
0
US
How do I grab all the elements of a .cfm template that is NOT in a form? For instance; I have the following:

<!--- oil changes per year --->
<cfset fa = form.m / form.o>
<!--- total oil changes per year (times vehicle quanity) --->
<cfset fb = fa * form.l>
<!--- oil changes cost per unit --->
<cfset gb = form.p + (form.q * form.bi) + form.r + form.s>
<!--- oil changes costs per year --->
<cfset fc = fb * gb>
<!--- oil changes costs per lifespan --->
<cfset fd = (form.n / form.o) * gb * form.l>

and so and so on...

I would like to make these elements and their values (fa, fb, gb, fc, fd) available on the next template for database insertion of the values

Do I manually setup an array or structure perhaps or are these elements already available for use? If so, where?

Thanks so much!
 
i would use a structure in Application or Session (whatever you need), variables set this way will not be available to other pages by default.

or you could always create a form and pass them as hidden vars to your insertion page.


=========================================
I have not failed. I've just found 10,000 ways that won't work.
Thomas A. Edison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top