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

SmartyValidate and the next template

 
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 -> Tips and Tricks
View previous topic :: View next topic  
Author Message
Rick Sinclair
Smarty Rookie


Joined: 20 Aug 2007
Posts: 5
Location: Seattle, WA

PostPosted: Sun Sep 23, 2007 5:19 am    Post subject: SmartyValidate and the next template Reply with quote

Problem:
I can validate a form using SV, but I'd like it to move into a new .php file and .tpl (to Google map the results and so on) when the line:
Code:

if(SmartyValidate::is_valid($_POST)) {
// no errors, done with SmartyValidate
SmartyValidate::disconnect();
}

I can get either/or to occur; reload the original form upon an SV error, or move to the next .php/.tpl even though there is an SV error - by simply removing the <form action=something.php in the html tag. I've read this link: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=11635&highlight=smartyvalidate and it would seem my answer is somewhere in the
Code:

$smarty->assign($_POST);

world, but I'm not getting the picture. Can someone tell me if this is where my problem lies and direct me to something I can read up on.

Better yet, a hand-holding session would be greatly appreciated: (I'm dying here.)

Rick
[/i]
Back to top
View user's profile Send private message Visit poster's website
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 -> Tips and Tricks 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