waynew Posted June 19, 2008 Share Posted June 19, 2008 Hey guys. I have an & character in the name of a company that I'm sending via a GET link. However, when this is brought to the new page, the company name is split in half. This means that when my database is using the company name to find details about it, nothing is showing up. I'm also having problems with a + character. All of these company names come from the same db. Any help would be great. Link to comment https://forums.phpfreaks.com/topic/110970-character-in-get/ Share on other sites More sharing options...
abdfahim Posted June 19, 2008 Share Posted June 19, 2008 you have to urlencode() the company name. For example $company_name="c&e"; $company_name=urlencode($company_name); //you have to include this line echo "<a href='?c=".$company_name."'>Link</a>"; Link to comment https://forums.phpfreaks.com/topic/110970-character-in-get/#findComment-569317 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.