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.
sinister problem with mediaeval code
Moderator: General Moderators
- titaniumdoughnut
- Forum Commoner
- Posts: 33
- Joined: Wed Jul 13, 2005 2:02 pm
- Location: Manhattan
take a look at http://de2.php.net/import_request_variables
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- titaniumdoughnut
- Forum Commoner
- Posts: 33
- Joined: Wed Jul 13, 2005 2:02 pm
- Location: Manhattan