Jump to content

Passing strings in the URL


Mateobus

Recommended Posts

Suppose that you were passing dynamic company names via the $_GET array.  Is there a function you can apply to the string to avoid potential errors because of the & sign in a string, for example:

site.com?company=Dell
and
site.com?company=Fujitsu

would be fine, but

site.com?company=AT&T wouldn't work.
Link to comment
https://forums.phpfreaks.com/topic/18428-passing-strings-in-the-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.