how to show a success dialog box after filling the newSuccess.php form?
I need to put a dialog box saying something like "success!" after so开发者_C百科meone fill a newSuccess.php
form. How can I do it?
You can use flash massages. You can read about it.You also can use this plugin Or after submitting you can redirect to custom action, when your form valid.
protected function processForm(sfWebRequest $request, sfForm $form)
{
$form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
if ($form->isValid())
{
$this->redirect('yourmodule/success');
}
精彩评论