Re: How to structure code for forms
| From: | Nirmalya Lahiri | Date: | Sun, 08 Jun 2008 11:15:00 +0000 |
| Subject: | Re: How to structure code for forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275119@lists.php.net to get a copy of this message | ||
--- On Sun, 6/8/08, Ethan Whitt <ethan.j.whitt@gmail.com> wrote:
> From: Ethan Whitt <ethan.j.whitt@gmail.com>
> Subject: [PHP] How to structure code for forms
> To: php-general@lists.php.net
> Date: Sunday, June 8, 2008, 4:31 PM
> I am new to PHP and have been researching ways to structure
> code for forms.
> I have found a
> few basic tutorials that present, validate & present
> errors, and then
> process form data. I was
> wondering if anyone could share their approach on how they
> structure these
> actions? Ideally,
> I would like to separate each action in separate functions.
> Thanks in
> advance...
>
> Regards
> Ethan
Hi,
I think it is better for you to follow MVC design pattern in PHP. Search internet for any good
manual on MVC design pattern. You can read the manuals of any good PHP framework also like Joomla,
CakePHP........ These frameworks are also follow MVC design pattern.
---
Nirmalya Lahiri
[+91-9433113536]