Reply to Problems with $_GET

Your name:

Reply:


Posted by Tim Streater on 03/08/06 20:32

I have a page which I enter thusly:

http://my.domain/mypage.phtml?absid=123&cpage=somestring

and inside mypage.phtml I do this:

$absid = $_GET["absid"];

Unfortunately, and I can't easily fix this in the short term, my
"somestring" may contain "absid=456". I think this screws up
mypage.phtml as it then runs with a wrong value of $absid (456 instead
of 123). This is what I suspect is happening, anyway.

I guess PHP is looking at the URL and just scanning from left to right
looking for ?xxx=value and &xxx=value pairs, right? If so, is there any
way to make it ignore subsequent values of xxx?

Thanks,

-- tim

[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

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