Yes register_globals was off. I created a php.ini file (Mac OS X doesn't use one by default) and added a line to enable register_globals. All works fine now.
Thanks to all for the assistance.
Matt
Ok. Here's the more simple of the two since it only involves a single page:
<?php
// File p-4-2.php
echo "<pre>";
echo "<br><b>Browser :</b> $HTTP_USER_AGENT";
echo "<br><b>Host :</b> $HTTP_HOST";
echo "<br><b>Referer :</b> $HTTP_REFERER";
echo...
Hi. I am very new to PHP. I have both apache and mysql as well as php installed on my laptop. I thought PHP was functioning correctly because when I do a phpinfo() I get the appropriate diagnostic page.
However in a couple of exercises designed to display variables populated from a form in one...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.