Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

nested tpl with form not setting $_POST

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
spinoza
Smarty Rookie


Joined: 10 Sep 2007
Posts: 6

PostPosted: Wed Sep 19, 2007 3:15 pm    Post subject: nested tpl with form not setting $_POST Reply with quote

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
View user's profile Send private message
spinoza
Smarty Rookie


Joined: 10 Sep 2007
Posts: 6

PostPosted: Thu Sep 20, 2007 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP