|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
alez Smarty n00b
Joined: 14 Jan 2004 Posts: 1
|
Posted: Wed Jan 14, 2004 1:48 pm Post subject: [b]$smarty->assign [/b]does't pass parameter |
|
|
Hi!
I have installed Smarty and it seems it works fine.
I have a problem when I pass parameter,for example:
in the file.tpl I wrote
.....<form action= "file.php" method="post">
<input type="text" name="prova" value="{$prova}">
<input type="text" name="ok" value="{$ok}">
<input type="submit" name="submit" value="submit">...
in the file.php I wrote
....echo $prova;
$smarty=new Smarty;
$smarty->assign('prova',$prova);
$smarty->assign('ok','perfect')
$smarty->display('file.tpl');.....
when I give a value (for example "5") to the form "prova" and I press "submit" ,in the next page (that is the same page)
echo prints 5,
in the form "ok" there is "perfect"
but in the form "prova" there is anything.....
It seems that $smarty->assign doesn't work with the same parameter of PHP...
Have I to set anything somewhere?
Thanks!!!
Ciao |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Jan 14, 2004 2:02 pm Post subject: |
|
|
maybe you have caching enabled? smarty would display the cached page then. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|