|
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 |
Rick Sinclair Smarty Rookie
Joined: 20 Aug 2007 Posts: 5 Location: Seattle, WA
|
Posted: Sun Sep 23, 2007 4:20 pm Post subject: Problems posting to new .php after SV success |
|
|
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. It must be incredibly simple, beacuse I'm only trying to move into a new .php file once SV is valid. I'm blinded - please help.
Rick _________________ New to web programming. Done C# and micro-controllers in the past. It's the simple things that hang me up. |
|
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
|