PHP Classes

smarty prefilter.form

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  smarty prefilter.form  >  (Un) Subscribe thread alerts  
Subject:smarty prefilter.form
Summary:problem with regexp
Messages:4
Author:Flip
Date:2011-11-19 15:34:42
Update:2012-03-12 22:12:57
 

  1. smarty prefilter.form   Reply   Report abuse  
Picture of Flip Flip - 2011-11-19 15:34:42
Hi,

I think i found a bug in prefilter.form.php

as you make your template like this:
{label for="email"}{input name="email"}

An error occurs. You should put at least a space like this for work-around:
{label for="email"} {input name="email"}


Best would be if the preg_replace is modified to handle this situation.

More info: http://www.smarty.net/forums/viewtopic.php?p=76415

  2. Re: smarty prefilter.form   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-03-11 12:07:16 - In reply to message 1 from Flip
I tried this in Smarty 3.1.8 and it works well. Could it be a bug in the Smarty version you were trying? Which version were you using?

  3. Re: smarty prefilter.form   Reply   Report abuse  
Picture of Flip Flip - 2012-03-12 14:05:02 - In reply to message 2 from Manuel Lemos
Smarty-3.1.5.zip

  4. Re: smarty prefilter.form   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-03-12 22:12:57 - In reply to message 3 from Flip
Right, but since it seems to be a bug in a past Smarty version it is better for you to upgrade as I have no idea how I can avoid it in the forms class Smarty pre-filter.