> If the link is <a href='yourpage.php?yourvar=fred'>
>
> Then in yourpage.php ...
>
> echo($yourvar);
>
> the only way you may go wrong with this is with scoping, $yourvar isn't
> available in a function inside yourpage.php.

It can be, though.  You just need to tell the function to look for the
global variable $yourvar:

function yourFunction() {
    global $yourvar;
    ...
}


Mike Frazer



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to