Problem with the form variable
Hi Jason,
I think it's a problem with using a form variable in the validation script. I tried just adding a number, instead of the form variable, and it appears to work.
Do you know how I would change the code to allow entry of the form variable? I assume it's the quotes in the 'Request.Form("qtyAvail")' that's causing the issue?
For example, this works:
WAFV_Errors = WAFV_Errors & WAValidateNM(cStr(Request.Form("PPcart_1_Quantity_Add")) & "",0,5,"",",.",true,1)
But this doesn't:
WAFV_Errors = WAFV_Errors & WAValidateNM(cStr(Request.Form("PPcart_1_Quantity_Add")) & "",0,Request.Form("qtyAvail"),"",",.",true,1)
How do I comment out the quotes? Appreciate the help, thank you.
Nath.