Variables in variables

From: Date: Thu, 31 Oct 2002 15:48:25 +0000
Subject: Variables in variables
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6319@lists.php.net to get a copy of this message
Hello there, I'm trying to have some vars within another var, but don't know how to do it. I want to make a customizable welcome-page, that can contain e.g. the name of the user inserted via smarty varaible. Example: php: <?php $name = "Santa"; $greet = "Hello {$name}, nice to meet you again"; ... ?> template: <html> ... {$greet} ... <html> output: <html> ... Hello Santa, nice to meet you again ... </html> Is that possible without using several template files? I have n customers, that have m customers, and each wants another welcome page. Best regards, Marc

« previous php.smarty.general (#6319) next »