Cheszy Posted August 27, 2011 Share Posted August 27, 2011 Hi, I want to have a "+" in my url, I'm working with a simple graphic cms, but I can't get it working. I've tried it this way: [m]'.trim(preg_replace('/[^a-z0-9()+._]/i', ' ', $selected)).'[/m] But I still get an invalid! url! example Link to comment https://forums.phpfreaks.com/topic/245839-in-url/ Share on other sites More sharing options...
Pikachu2000 Posted August 28, 2011 Share Posted August 28, 2011 A + in a URL represents a space. You need to look into using urlencode and urldecode. Link to comment https://forums.phpfreaks.com/topic/245839-in-url/#findComment-1262737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.