Reply to Re: [PHP] rawurldecode

Your name:

Reply:


Posted by Aaron Todd on 03/29/05 17:37

I got it. After you said I shouldn't need it I started playing around and
found that you were right...I didnt need it for spaces and other
punctuation. But I was then having a problem with amperstands. It was
dropping everything after an amperstand off. I ended up doing a
rawurldecode of $_SERVER["QUERY_STRING"] and then a strrchr() on it to
return everything past the "=" sign. Then I had to do a substr() to get rid
of the "=". Its probably a long way of doing this and I know it probably
wont work if I add a second variable to the url, but I have already taken
precautions against that. This should work unless anyone see's amore major
security issue with it.

$end = strlen(strrchr(rawurldecode($_SERVER["QUERY_STRING"]),"="));
echo substr(strrchr(rawurldecode($_SERVER["QUERY_STRING"]),"="), 1,
$end);

Thanks

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация