开发者

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');
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜