Author |
Message |
Topic: Smarty Validate IsFile |
mjerom
Replies: 6
Views: 16786
|
Forum: Add-ons Posted: Sat Mar 05, 2005 7:16 pm Subject: Smarty Validate IsFile |
I corrected my code :
SmartyValidate::connect($smarty);
SmartyValidate::register_form('artiste_vignette_form');
if(empty($_POST)) & ... |
Topic: Smarty Validate IsFile |
mjerom
Replies: 6
Views: 16786
|
Forum: Add-ons Posted: Sat Mar 05, 2005 7:33 am Subject: Smarty Validate IsFile |
Still not working for me ...
I really don't understand my problem !
here is the code I am using :
tpl :
<table class="adminheading" >
<tr>
<th class="modific ... |
Topic: Smarty Validate IsFile |
mjerom
Replies: 6
Views: 16786
|
Forum: Add-ons Posted: Tue Mar 01, 2005 3:57 pm Subject: Smarty Validate IsFile |
no I did not forgot the enctype...
The thing is that is was working before upgrading validate with the CVS one.
I keep on investigating ! |
Topic: Smarty Validate IsFile |
mjerom
Replies: 6
Views: 16786
|
Forum: Add-ons Posted: Tue Mar 01, 2005 12:36 pm Subject: Smarty Validate IsFile |
Am i missing something, I checked everything (as far as I can...)
my problem is that I need to make an upload form but this upload must be optional , I' m using this code :
<input class="i ... |
Topic: Smarty Validate IsFile |
mjerom
Replies: 6
Views: 16786
|
Forum: Add-ons Posted: Sat Feb 26, 2005 12:38 pm Subject: Smarty Validate IsFile |
With the last CVS I cannot use the criteria IsFileType with empty="yes"
<input class="inputbox" name="vignette_news" type="file" size="32" maxlength="255" >
<br />
{validate form="new ... |
Topic: SmartyValidate and form arrays |
mjerom
Replies: 17
Views: 44168
|
Forum: Add-ons Posted: Thu Feb 10, 2005 5:30 pm Subject: SmartyValidate and form arrays |
& it's rocking !
yeah |
Topic: SmartyValidate and form arrays |
mjerom
Replies: 17
Views: 44168
|
Forum: Add-ons Posted: Thu Feb 10, 2005 5:18 pm Subject: SmartyValidate and form arrays |
SmartyValidate.class.php/1.33/Thu Feb 10 17:17:09 2005//
sorry not better...
maybe it's stupid but :
can't you substitute
strlen($formvars[$_field]) == 0
with
$formvars[$_field] == ""
... |
Topic: SmartyValidate and form arrays |
mjerom
Replies: 17
Views: 44168
|
Forum: Add-ons Posted: Thu Feb 10, 2005 3:29 pm Subject: SmartyValidate and form arrays |
glup :
->from tpl
{validate form="track_form" field="liste[]" criteria="notEmpty" message="Vous devez s&lectionner au moins un artiste !"}
->resulting errors
Notice: Undefined variable: ... |
Topic: SmartyValidate and form arrays |
mjerom
Replies: 17
Views: 44168
|
Forum: Add-ons Posted: Wed Feb 09, 2005 6:20 pm Subject: SmartyValidate and form arrays |
Hi everybody,
the cvs code is working good,
still i get a error (notice) :
Notice: Array to string conversion in /var/www/html/_DEV/redust/inc/smarty/SmartyValidate.class.php on line 203
no pb ... |
|