Results 1 to 3 of 3

Thread: spelling

  1. #1
    Join Date
    Dec 1969

    Default spelling

    Hi, I&#039;ve made un update page for my database but everytime I enter a word with an apostrophe such as "can&#039;t" into a textfield, I get an error.<BR><BR>How can I fix this?

  2. #2
    Eddie Campbell Guest

    Default RE: spelling

    MyVal=Request.Form("MyField")<BR>MyVal = Replace(MyVal,"&#039;","&#039;&#039;")<BR><BR>This replaces a &#039; marks with two &#039; marks which will work fine.

  3. #3
    Join Date
    Dec 1969

    Default RE: spelling

    to elaborate, when you want to re-display your updated text just use the replace function again to reverse the process :D<BR><BR>MyVal=Request.Form("MyField")<BR>MyVal = Replace(MyVal,"&#039;&#039;","&#039;")<BR><BR>of course use an array if you need to replace other items, like line breaks and such<BR>

Posting Permissions

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