I have something like:
if(isset($_POST['submit']))
{
$linktitle=strtolower(str_replace(" ","-",$title));
etc.
$linktitle and $title are actually variables from $_POST – ie $_POST['linktitle'] and $_POST['title'].
Somehow, even though (as far as I can see!) I haven’t extract()ed $_POST at this stage in the code, it is still working – PHP is understanding that $title is referring to $_POST['title']. Could anyone please explain why this might be?
Thanks!
ps. Sorry, but I really can’t get this inline code quote formatting thing to work…!
register_globalsis enabled in your PHP instance. See here for more info.This is behaviour that should be relied upon as it’s use is now deprecated. You will find that you can still use
$_POST['keyname']as well as$keyname, and that is what you should refer to in your code.