Re: [SMARTY] Newbie - Question
| From: | messju mohr | Date: | Tue, 04 Mar 2003 00:50:03 +0000 |
| Subject: | Re: [SMARTY] Newbie - Question | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8363@lists.php.net to get a copy of this message | ||
On Mon, Mar 03, 2003 at 03:59:11PM -0800, Martin Völkening - 0700webhilfe.de wrote:
> Hi,
>
> I am just starting with Smarty and will probably trouble you with
> some newbie questions. Sorry about that.
>
> How can I access variables passed on in the url
> http://test.de?action=show&value=123 in with
> 'include_php' included
> PHP scripts?
as you would in a "normal" php script:
$_GET['varname'];
in older versions of php:
$GLOBALS['HTTP_GET_VARS']['varname'];
you don't have any global variables in your current namespace, but you
can declare them global, of course.
HTH
messju
> Thanks
>
> Martin