Re: quickform on single php page with CASE
| From: | Justin Patrin | Date: | Tue, 11 Oct 2005 02:36:02 +0000 |
| Subject: | Re: quickform on single php page with CASE | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21338@lists.php.net to get a copy of this message | ||
On 10/10/05, Andras Kende <andras@kende.com> wrote:
> Hello,
>
>
>
> I'm in a process of converting one of my form page to quickform based..
>
>
>
> I use a single php page to enter; edit and display data based on url
> variable with case.
>
>
>
> switch ($action)
>
> {
>
> case "process-new" :
>
> ..
>
> break;
>
>
>
> case "process-edit" :
>
>
>
> etc etc.
>
>
>
>
>
> Is this is a easily doable way with quickform or its easier to break into
> separate pages ?
>
Yes. Just put the code you'd put in the different pages in the
different cases....
--
Justin Patrin