Advertisement
Advertisement
| 01.12.2008 at 05:37AM PST, ID: 23077866 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: |
<head> </head> <body> <cfparam name="form.places" default="4"> <cfform action="results.cfm" method="post" preservedata="yes"> <table> <tr valign="middle"> <td height="40" colspan="2" align="left" valign="top" class="body"> E Mail Address:<br> <cfinput type="text" name="email" message="Email address required" required="yes" tabindex="10" size="45" maxlength="255"> </td> <td valign="top">Please book <span class="style1">*</span><br> <cfinput type="text" name="places" size="4" maxlength="2" > place(s) </td> </tr> <!--- When a user enters a number for plases in the above field I heed the following code to run the show the number ofoptions as entered the places input option ---> <!--- If I set the '<cfparam name="form.places" default="1">' to a say 4 I get the resualt I need, but this needs to be Dynamic on users input ---> <cfset j = #form.places#> <cfloop index = "LoopCount" from = "1" to = #j#> <tr valign="middle"> <td height="40" colspan="2" align="left" valign="top" class="body"> Delagates Name <cfoutput>#LoopCount#</cfoutput>: <br> <cfinput type="text" name="delName" message="Email delagates name" required="yes" tabindex="10" size="45" maxlength="255"> </td> <td valign="top">Delagates Bate of Birth <cfoutput>#LoopCount#</cfoutput>: <br> <cfinput type="text" name="deldob" message="Email delagates Date of birth" required="yes" tabindex="10" size="45" maxlength="255" validate="date"> </td> </tr> </cfloop> </table> </cfform> </body> |