Thanks John, that did the trick.
I'm curious though, the PHP book I'm reading (PHP and PostgeSQL, Advanced web programming) specifically states that it's not necessary to grab form variables in this way, claiming PHP extracts all form variables behind the scenes for you. Was my original syntax something that used to be supported but has since been deprecated?
It has not been deprecated but depends on register_globals setting being on. The recomended way is to have this setting off and use $_GET, $_POST etc superglobals, it will help you keep your code secure. More here:
http://sk2.php.net/manual/en/security.globals.php
Ken
On Oct 23, 2004, at 10:13 AM, John Holmes wrote:
if(isset($_POST['view'])) { echo $_POST['publication'] . '<br />' . $_POST['view']; }
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php