Skip to main content
Inspiring
June 2, 2010
Question

<cffrom> not validating inputs

  • June 2, 2010
  • 1 reply
  • 307 views

I'm outputting the contents of a form from a query

<cfform action="dosomething.cfm" name="update" method="post" enctype="application/x-www-form-urlencoded">  

  <cfoutput query="viewCart">
      <cfinput type="text" name="myQty" size="3" maxlength=1  value="#viewCart.merchandise_qty#" required="yes" message="Please enter a number between 1-5 for quantity" validate="integer" range="0,5"/>
  </cfoutput>
  <input type="submit" name="update" value="update" id="cart" />
</cfform>
am I doing something wrong for it not to trigger a validation box when I break the rules ? For example if I type 20, it accepts it no problem.

This topic has been closed for replies.

1 reply

Inspiring
June 2, 2010

apologies - all sorted