Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 8 matches
Smarty Forum Index
Author Message
  Topic: only one of two fileds is required ...
adamos

Replies: 2
Views: 7154

PostForum: Add-ons   Posted: Wed Jun 22, 2005 1:10 pm   Subject: only one of two fileds is required ...
Hello
I Have this problem:
in my form a have many fields, but form is valid when user put something in one of two fields: Mail or Phone.
How I must doing this:
When user put mail - phone validat ...
  Topic: SmartyValidate: [validate plugin] form 'default' is not ...
adamos

Replies: 22
Views: 78442

PostForum: Add-ons   Posted: Thu Jan 06, 2005 11:38 am   Subject: SmartyValidate: [validate plugin] form 'default' is not ...
Yours <form> hasn't a name paramentr, and this is probably reason that you have error which tell that this from isn't registered.
  Topic: problem with SmartyFormTool
adamos

Replies: 6
Views: 18217

PostForum: Add-ons   Posted: Mon Jan 03, 2005 8:22 am   Subject: problem with SmartyFormTool
thx Monte, with <form ... > is ok
  Topic: problem with SmartyFormTool
adamos

Replies: 6
Views: 18217

PostForum: Add-ons   Posted: Thu Dec 30, 2004 9:30 am   Subject: problem with SmartyFormTool
I have:
DOCUMENT_ROOT
\formtool
--\formtoll.php
--\templates
----\formtoll.tpl
\javascript

formtool.php code:
<?php
require('smarty/Smarty.class.php');
$smarty =& new Smarty;
...
  Topic: 2 forms and problem with SmartyValidate
adamos

Replies: 2
Views: 13716

PostForum: Add-ons   Posted: Thu Dec 30, 2004 9:09 am   Subject: 2 forms and problem with SmartyValidate
tahnks, I resolved this problem - used this code:
<?php
if(empty($_POST)) {
SmartyValidate::connect($smarty, true);
...
}
?>
So, reset old session data - I find this on this forum Smile
  Topic: problem with SmartyFormTool
adamos

Replies: 6
Views: 18217

PostForum: Add-ons   Posted: Wed Dec 29, 2004 2:53 pm   Subject: Re: problem with SmartyFormTool
When I use
{formtool_init src="/javascripts/formtool.js"}
the efect is the same " Error on This Page"

I used even code from formtool_init()

<script type="text/java ...
  Topic: problem with SmartyFormTool
adamos

Replies: 6
Views: 18217

PostForum: Add-ons   Posted: Wed Dec 29, 2004 1:36 pm   Subject: problem with SmartyFormTool
I have a problem with this tool:
1. I assign a table $colors to the template
$colors[0]= "red";
$colors[1]= "yellow";
$smarty->assign("colors", $colors);
$smarty->display('formtool.tpl');
...
  Topic: 2 forms and problem with SmartyValidate
adamos

Replies: 2
Views: 13716

PostForum: Add-ons   Posted: Wed Dec 29, 2004 9:16 am   Subject: 2 forms and problem with SmartyValidate
I have 2 forms, in with i use an engine form tutorial:
form 1:
<?php
if(SmartyValidate::is_valid($_POST)) {
if (register_user($db, TABLE_USERS, $_POST)){
SmartyValidate::disconnect();
$s ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP