Jump to content

Using & in a url


Howlin1

Recommended Posts

Hello,

 

Say I have a url http://www.somedomain.com/abc/view.php?id=Mountain--troll---D&D--2-

And "Mountain troll -D&D 2-" is an entry in a database with information. The problem that I am having is since I have an ampersand in the url it is being treated as two different strings (Mountain troll -D being one and  2- being the second). I know I can solve the problem by just not using an ampersand in the database entry name, but for arguments sakes lets say I can't remove it. Would it be possible for it to be treated as one long string ignoring the ampersand?

 

 

Link to comment
https://forums.phpfreaks.com/topic/245917-using-in-a-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.