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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Side Validation

Status
Not open for further replies.

jalbao

Programmer
Nov 27, 2000
413
US
In my html form i have a hidden field thet contains a float validation command;
<input type=&quot;hidden&quot; name=&quot;foo_float&quot; value=&quot;Please enter a valid number - Decimals are ok&quot;>

The validation works fine, but it does a little something extra that I'm not too fond of... after the user enters in a numeric value in the form fiels 'foo', a decimal along with 6 zero's are added to whatever the user entered....?

Why is this happening... what can i do to avoid this?
 
can you send here the validation code ???
 
Hey Albao,

I don't think the CF validation routines add anything to the number but I'm not positive. If you remove the validation string, do the additional zero's disappear? Also, where are you seeing these additional zeros? Are they showing up when you display the form variable &quot;foo&quot; like <cfoutput>#foo#</cfoutput> or are you seeing them when you insert foo into a database?

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top