Page 1 of 1

[solved]passing & in a variable

Posted: Fri May 20, 2005 9:09 am
by phpScott
O.K. i give up, been bantering around the manual and the web for several hours now and can't find the right solution.:x

It will probably be helpful to know the problem. Here it is.

The website I'm currently working on allows the client to make their own menu's. That's fine, they can the trouble is they are putting in things like & ' " / and the like into the title of the page which then becomes the menu title and the href link to the page.

I've tried urlencode, htmlentities, a combination of both, the method that uses get_html_translation_table(), And then to try and decoded it all on the page that does the db look up to get the right info for the page.

Any good suggestions on how to translate the special characters that doesn't change something to & or the like because the & gets translated as a second name value pair.

Cheers

Scott

edit
never mind I found the the $_SERVER['REQUEST_STRING'] seems to keep what ever you pass with out doing any funny translations, a little string work and bob's your uncle, it's good as gold, it's fluffy duck, sorted, solved, what ever else comes to mind :D