Results 1 to 2 of 2

Thread: Problem with slash

Hybrid View

  1. #1
    Join Date
    Apr 2007

    Problem with quote

    My strArr[2] value is: EIS 1 'Switching' (1 Bit)
    My problem is the quotation mark... the option value stop in the quote, and don't read any variable after. Is that anyway of read the quote just like another character....

    Hope somebody can help.

    echo "<option value=' ".$grupo." |^| ".$strArr[2]." |^| ".$aux[2]." '>$grupo</option>"
    Last edited by davser; 05-09-2007 at 11:24 AM.

  2. #2
    Join Date
    Aug 2004
    PHP Code:
    echo "<option value='" $grupo " |^| " addslashes($strArr[2]) . " |^| " $aux[2] . "'>$grupo</option>"
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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