|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
CF concat variable w/ a variable?
Hi,
I have a form w/ inputs like dr, patient, drug, direction to print prescription labels. Making 1 label is simple. However, I want to let the users specify how many labels they want to make so that they may print it on 1 page. I was thinking setting a varible called Count and let the user set that variable. then loop from 1 to count display 'Count' # of forms so they can fill out, then print out. The thing I'm having problem with is how do I make the form variable's name change? like name1, dr1, patient1 and so on? I tried to concat but using name.Count doesn't work and google didn't really help, searching concat in this forum returned nothing. So I need to be able to do this name1<input ....... dr1 <input ..... patient1 <input . name2<input ..... dr2<input ....... patient2<input ....... output name for Nth times specified by the users. Any tips? Thanks |
|
#2
|
|||
|
|||
|
I can't tell if you mean the form field name, or the form variable name. If you mean the field name you could do:
<input type="text" value="name#i#"> If you mean the variable name itself, you could do: <cfoutput> #form['name#i#']# </cfoutput>
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
it's the variable name that I was looking to do, will give that a try, thanks
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CF concat variable w/ a variable? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|