Search for quotations

Results 1 to 2 of 2

Thread: Search for quotations

  1. #1
    Join Date
    Dec 1969

    Default Search for quotations

    I am developing a search feature for a site that will be searching for people&#039s height, among other traits. When the user enters the height 5&#039 7", i get error messages due to the extra quotations in the ASP code. what is the way around this issue? how do i search for items in a database that have quotation or prime marks included?<BR><BR>Any thoughts??<BR><BR>thank in advance

  2. #2
    Jason Miller Guest

    Default RE: Search for quotations

    myHeight = replace(request.form("height"), "&#039", "f")<BR>myHeight = replace(myHeight, """", "i")<BR>&#039 result -&#062; 5f7i<BR><BR>to extract, just reverse the "replace"s -- unless somebody will enter their height in hex or has an imaginary number in their height (those wacky users).

Posting Permissions

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