Daen wrote:I noticed this myself when I started working on XAMPP. It seems to make the PHP code a little more picky than I'm used to.
Anyway, I used to normally just send id in the URL like you do, then just assume $id was set to whatever the URL said, and it worked. With XAMPP I had to change it a bit, since it looks like it doesn't allow the vars to be automatically set. Since vars sent in the URL are sent as the GET method, you have to access them in the $_GET superglobal.
so try this at the beginning of your file:
$id = $_GET['id'];
Hope that helps.
capitalfellow wrote:The behaviour you are used to experiencing is when register_globals is turned On in php.ini. However this a bad programming practice to get accustomed to doing and it can lead to lots of security holes or just bug ridled code.
Since PHP 4.2 the default has been to turn this setting Off forcing the developer to use the super global arrays _GET and _POST to fetch form variable values.
Users browsing this forum: No registered users and 48 guests