Quotes problem

Results 1 to 2 of 2

Thread: Quotes problem

  1. #1
    Join Date
    Dec 1969

    Default Quotes problem

    HI All,<BR> I am facing a problem over here if somebody can help me That will be a Big Help.<BR> When i Put an email id with quotes it is replacing the <BR>quotes but i dont want it like that.<BR><BR>I want to send to this emailid: KS&#039RS@hotmail.com<BR><BR>How do i do It?<BR><BR>Thanks<BR>Sri<BR>

  2. #2
    alphageek Guest

    Default Quotes

    Hi Sri,<BR><BR>When using literal quotes in a database, you have to double them up in the SQL statement (KS&#039RS becomes KS&#039&#039RS in the SQL statement, but is stored and recalled as KS&#039RS). Use the Replace function like this : <BR><BR>MyNewString = Replace(MyString,"&#039","&#039&#039")<BR><BR>With double quotes ("), you can put them literally into a string by putting two next to each other: Response.write ("""Hi""") prints "Hi".<BR><BR>Good Luck!<BR>~Ben<BR>http://snakebyte.cjb.net<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