String Filtering / content checking

Results 1 to 2 of 2

Thread: String Filtering / content checking

  1. #1
    Join Date
    Dec 1969

    Default String Filtering / content checking

    Is there any module or procedure, or any code, arount that will check my formfields for illigal entries.<BR>e.g <BR>- filter out all the &#039; out of a string so it doesn&#039;t make my sql-string invalid.<BR>- check the integrety of a date<BR>- convert the #13 so when reading the data out of the db the linefeeds will still be there<BR><BR>tnx

  2. #2
    EggHeadCafe Guest

    Default Most people use Replace()

    Replace(sString,",","") will strip out all commas for instance.<BR>Replace(sString,Chr(13),"") will strip out Chr(13)&#039;s.<BR><BR>You&#039;ll have to write your own date validation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts