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

Problems posting to new .php after SV success

 
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 -> Add-ons
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 4:20 pm    Post subject: Problems posting to new .php after SV success 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. 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
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 -> Add-ons 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