Hi gregoryrsmith,
val() and int() functions if there is no number but only text in the field of numoffileds then it will give you NULL and will not display anything.
Regards,
---Pinal
Main Topics
Browse All TopicsHi,
Is there any way to convert a form value to a number?
I've tried <cfoutput>#Val(FORM.numOfF
<cfoutput>#Int(FORM.numOfF
and CF said that naming the input with a _integer suffix would make CF automatically convert string to number, but I got the same error.
Thanks for any help,
Greg
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi gregoryrsmith,
'<cfoutput>3</cfoutput>'
your form value is sending this information...that is incorrect. Check yoru form value...
may be in yoru form where you are submitting the value is like that... value='<cfoutput>numOfFiel
which is not correct "may be" ...so just check yoru form again.
Regards,
---Pinal
Checked it, maybe you see something I don't (very likely)?
<cfoutput>
<form action="c_UplThumb.cfm" method="post">
<input name="numOfFields" type="text" size="5" maxlength="5"><br>
<input name="folderNumber" type="hidden" value="#FORM.number#">
<input type="submit" name="Submit" value="OK">
</form>
</cfoutput>
The action page here
<form action="c_UplThumb2.cfm" method="post" enctype="multipart/form-da
<cfloop index="i" from="1" to="<cfoutput>FORM.numOfFi
<cfset filename = "file" & #i#>
<input type="File" name="<cfoutput>#variables
</cfloop>
<input type="hidden" name="finalFolder"
value="<cfoutput>#FORM.fol
<input type="Submit" name="upload" value="upload">
</form>
Thanks,
G
Business Accounts
Answer for Membership
by: mrichmonPosted on 2004-11-05 at 14:35:15ID: 12509567
I am confused. Why do you think it is not a number?