Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    TheFuzzball's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    1
    Downloads
    0
    Uploads
    0
    Given that the plus symbol doesn't mean anything inside of quotes, (either double or single,) there is really no reason that PHP would be printing the string without the plus. Maybe pastebin your code so I can get a better idea of what you're doing. Otherwise:

    echo 'HD Channel+';

    works fine for me.

  2. #2
    fratisacat14's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    0
    Downloads
    0
    Uploads
    0

    PHP Plus sign being turned into space?

    I have a string that is dynamically created in PHP. The string in the URL is 'HD Channel+' but when I echo back the value which should return 'HD Channel+' I only get 'Channel' without the plus sign. I have looked into urlencoding and urldecoding but have not found the answer yet since they either turn all spaces into + or all of the + into spaces. Does anyone know how to keep the plus sign attached without it being turned into a space?

  3. #3
    _khAttAm_'s Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    2
    Downloads
    0
    Uploads
    0
    use %2B instead of +

  4. #4
    _khAttAm_'s Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    2
    Downloads
    0
    Uploads
    0
    use %2B instead of +

 

 

Quick Reply Quick Reply

Click here to log in


What comes after M0nday

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Just turned 18, do I really need to sign up for the draft?
    By Molly Woods in forum Discuss Painting and Sculpture
    Replies: 0
    Last Post: 03-10-2011, 12:00 PM
  2. Do the nets have cap space to sign 2 max level players?
    By Mike G in forum Discuss Fishing
    Replies: 0
    Last Post: 05-18-2010, 05:07 PM
  3. Replies: 0
    Last Post: 09-29-2009, 12:51 AM
  4. PHP: Should I use 'elseif' or 'else if' (with or without space?)?
    By Question Everything! in forum Discuss PHP
    Replies: 0
    Last Post: 07-28-2009, 01:04 AM
  5. Replies: 2
    Last Post: 06-28-2009, 04:32 PM

Bookmarks

Posting Permissions

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