www.webdeveloper.com
Results 1 to 2 of 2

Thread: Problem with slash

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    28

    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
    Location
    Ankh-Morpork
    Posts
    19,617
    PHP Code:
    echo "<option value='" $grupo " |^| " addslashes($strArr[2]) . " |^| " $aux[2] . "'>$grupo</option>"
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

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



Recent Articles