Single and Double Quotes ' & "

Results 1 to 3 of 3

Thread: Single and Double Quotes ' & "

  1. #1
    Jason Buck Guest

    Default Single and Double Quotes ' & "

    What is the best way to make input boxes or textareas ignore these little pests which bring up asp errors because they cause code parsing. I guess my question is how do I create dataentry fields for my user&#039s that will not be affected by the usage of &#039 or ", just like the 4guys thread post form.<BR><BR>Great Site. It has been a great help in the development of my ASP Skills.<BR><BR>TIA<BR><BR>Jason<BR>

  2. #2
    Jason Miller Guest

    Default RE: Single and Double Quotes ' &

    When you get the input data, do<BR><BR>parseInput = replace(input, """", "&quot;")<BR>parseInput = replace(parseInput, "&#039", "&#039;")<BR><BR>before you do anything else with it. It shouldn&#039t mess you up then...

  3. #3
    Geordie Guest

    Default RE: Single and Double Quotes ' &

    If you&#039re worried about &#039 or " stuffing up SQL Statements, you can weed them out with just a <BR><BR> strData = replace( strData, "&#039", "" )<BR> strData = replace( strData, """", "" )<BR><BR>- Hope that helps (?)

Posting Permissions

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