|
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 |
spinoza Smarty Rookie
Joined: 10 Sep 2007 Posts: 6
|
Posted: Wed Sep 19, 2007 3:15 pm Post subject: nested tpl with form not setting $_POST |
|
|
I have an index.php page with a switch statement that sets a smarty var to a value depending on the action passed to it. in the index.tpl I do this.
<div id="header">
{include file=$header}
</div>
$header is set to login.tpl and login.tpl posts to loginCheck.php but $_POST is empty in loginCheck.
What am i missing here. I am very unclear about methods and means to include, display and act on templates that are nested. Are there any good go-by you guys can suggest beside the sample app on the smarty web site?
Thanks |
|
Back to top |
|
spinoza Smarty Rookie
Joined: 10 Sep 2007 Posts: 6
|
Posted: Thu Sep 20, 2007 1:35 pm Post subject: |
|
|
This one is resolved thanks to some kind help. The problem was failing to define a name value for the form elements somewhere. I chose to do it in the top level PHP script that was the parent of the login tpl.
Thanks to Rikaelus for pushing me thru the weeds on this one. There are more knowledge jungles ahead. |
|
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
|