note 43875 added to function.isset
| From: | blaksaga at rn2 dot php dot net | Date: | Wed, 07 Jul 2004 00:30:47 +0000 |
| Subject: | note 43875 added to function.isset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-72804@lists.php.net to get a copy of this message | ||
If I pass $name to a page from a form and the page contains this:
<?
function example ( $name )
{
return;
}
if ( isset ( $name ) )
echo "ISSET";
?>
It will not work as expected. For some reason $name gets cleared after the function declaration.
Just an FYI. So be sure to use alternate names for parameters.
----
Manual Page -- http://www.php.net/manual/en/function.isset.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43875
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43875&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43875&report=yes
Search -- http://master.php.net/manage/user-notes.php