sinister problem with mediaeval code
Posted: Fri Nov 03, 2006 12:02 am
Apologies in advance for proving what a hopeless noob I am, and not using the correct terminology for anything.
In ye olden days of PHP I could go to a url like page.php?image=3 and a variable called $image would work just fine in the page. Now all my sites have been upgraded to a more advanced host, and this doesn't work anymore. I need to use $_POST["image"] and all that. Is there any way, for the hapless programmer like me, who didn't see this coming, to avoid recoding every page on every site I run? That's a severely depressing prospect.
Any sort of automatic feature or custom function that I can plop down in the beginning of each page to take URL-passed variables and generate real ones from that array with the names they would be expected to have?
Thanks in advance, O PHP Gods.
In ye olden days of PHP I could go to a url like page.php?image=3 and a variable called $image would work just fine in the page. Now all my sites have been upgraded to a more advanced host, and this doesn't work anymore. I need to use $_POST["image"] and all that. Is there any way, for the hapless programmer like me, who didn't see this coming, to avoid recoding every page on every site I run? That's a severely depressing prospect.
Any sort of automatic feature or custom function that I can plop down in the beginning of each page to take URL-passed variables and generate real ones from that array with the names they would be expected to have?
Thanks in advance, O PHP Gods.