Variables within Variables
| From: | Nunners | Date: | Thu, 03 Jun 2004 15:22:09 +0000 |
| Subject: | Variables within Variables | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11424@lists.php.net to get a copy of this message | ||
(Sorry for the naff subject - that's the only way I could describe it.!)
I'm trying to setup an application that uses various things, including
Smarty, PEAR:DB and anything else I think I can fit in!!!!
I've got to a point where I want to dynamically create a menu item, with two
layers of information.
The first is establishing the url of the link, which might be in the form
of:
/travel.php?id=$agent_id&password=$password
Then, using a saved cookie (a reference to call customer details), also pass
$agent_id and $password according to the customer's details (i.e. the
cookie).
Is that easily possible?
As further reference/guide, the url is saved as a variable within the Smarty
setup, and then appears in the template accordingly.