Jump to content

php reading certain $_GET differently


freelance84

Recommended Posts

While testing...

 

php seems to be changing the & symbol into a square bracket when retrieving from $_GET. I assume this is so it can still use the & to seperate variables placed into the URL.

 

When i print_r the $_GET i get this:

[name] => [lt;table]

 

My question is... is there a function which decodes this?

 

For example, the name, "<table>" is actually stored in my table due to html entities as you see therefore if the name is ever passed via the URL, the & messes it all up.

 

 

Furthermore, are there any other characters like this i should be looking out for?

 

Link to comment
https://forums.phpfreaks.com/topic/215135-php-reading-certain-_get-differently/
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.