Using VBScript you can use the IsNumeric vb
function to check for a number.
intNum = 5
If IsNumeric(intNum) Then
intBasketQty = Trim(Request.Form("txtBasketQty"))
If IsNumeric(intBasketQty) Then
... 'do something here
Hope this helps
quote:Originally posted by aware
Thanx for trying to help.
What I'm doing is this - I have a shopping cart (I've had to write my own rather than use a commercial one to get some specific functionality) The form submits to itself and I pass through the querystring the form values.
I'm validating the form values ie checking that there is a value in various form fields in asp as the page loads.