Re: [SMARTY] globals

From: Date: Tue, 29 Jul 2003 21:54:06 +0000
Subject: Re: [SMARTY] globals
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9986@lists.php.net to get a copy of this message
$_POST can only come from a form. Try something like <input type="text" name="your_name"> greetz fLo
From: "Olivier Doucet [reagi.com]" <webmaster@ajeux.com> To: <smarty-general@lists.php.net> Subject: [SMARTY] globals Date: Tue, 29 Jul 2003 23:50:56 +0200 Hi , I have some troubles with globals & smarty. Here is an example, it will be easier to understand : In php : [ smarty initialisation ] $myvar = "prenom"; $_POST['nv_'.$myvar] = 'myvalue'; [ smarty display] --------- in Tpl : --> {$smarty.post.nv_prenom} <--<br> -------- but it echoed nothing :((( I've done a var_dump directly in php, and my var IS in _POST : array(1) { ["nv_prenom"] => string("7") "myvalue" } Any idea ??? Olivier Doucet -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ Fotos - MSN Fotos das virtuelle Fotoalbum. Allen Freunden zeigen oder einfach online entwickeln lassen: http://photos.msn.de/support/worldwide.aspx

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