Re: Questions, questions.
| From: | Dmitri Zakharov | Date: | Wed, 20 Mar 2002 05:00:36 +0000 |
| Subject: | Re: Questions, questions. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3115@lists.php.net to get a copy of this message | ||
Take a look at the series of articles by Jason Sweat Using PHP to Develop
Three-Tier Architecture Applications at
http://www.zend.com/zend/tut/tutsweatpart1.php
http://www.zend.com/zend/tut/tutsweatpart2.php
That might solve your problem.
As for form validation, you have choices:
Client side JavaScript or server side PHP. Here're a few usefull links:
http://developer.netscape.com/docs/examples/index.html?content=javascript.html
http://www.zend.com/zend/spotlight/form-pro-php4.php
Enjoy :o)
- dmitri
"Batchelor, Scott" wrote:
> Hi all,
>
> New to the Mailing list, smarty and PHP in general, so please be patient. I
> have a few questions that I hope some of you can help me with.
>
> I am trying to build a form with templates...that is easy enough. But I
> also want to do validation on this form. My current thinking is to put
> everything into an array. And then call a PHP function to check it. What I
> would like to do is call the function from the same page that my PHP
> template code is on. But I am not sure if I can do this? I know that I can
> create an entirely different PHP page and have it called on the submit of
> the form to do validation. But I was trying to keep it to just 1 PHP page
> and my template file.
>
> Any help is greatly appreciated.
>
> Scott M. Batchelor | sbatchel@indiana.edu
> IT Policy Office - OVPIT | voice: (812) 855-6346
> Indiana University | fax: (812) 855-7868
>
>
>
> ---
> You are currently subscribed to smarty as: zakd@look.ca
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Dmitri Zakharov