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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/245839-in-url/#findComment-1262737 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.