Jump to content

pattern in asp


Matar

Recommended Posts

hi i need a code to check if the text box value just letters ,so the user should be enter letters , icheck it for number value and null value but i can't prevent it from acespting the (!@#$%^&*()_=+*") how ?? :)

Link to comment
Share on other sites

you might find useful the VB function "replace"have an external .vb file with a function like this:

function fixit (theString)        fixit = replace (theString, "@", "-")        fixit = replace (theString, "!", "-")        fixit = replace (theString, "%", "-")        fixit = replace (theString, "$", "-")   (... so on ...)end function

and when you take the values, filter them through that function.

      variable = fixit (trim(request("variable")))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...