开发者

how to show a success dialog box after filling the newSuccess.php form?

开发者 https://www.devze.com 2023-03-31 23:08 出处:网络
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 t

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

精彩评论

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

关注公众号