SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to return string value with quotes (single or double)

    Hi, how can I return String value retrieved from the database to the textbox in the form

    If the data is without quotes there isn't any error.

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you try escaping the quote marks?

    "\"some text\"";

    Or, you could just add them with Javascript:
    Code:
    '"' + mydata + '"'


Bookmarks

Posting Permissions

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