RE: [PEAR] quickform on single php page with CASE

From: Date: Tue, 11 Oct 2005 03:35:54 +0000
Subject: RE: [PEAR] quickform on single php page with CASE
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21340@lists.php.net to get a copy of this message
-----Original Message----- From: Justin Patrin [mailto:papercrane@gmail.com] Sent: Monday, October 10, 2005 9:36 PM To: Andras Kende Cc: PEAR general list Subject: Re: [PEAR] quickform on single php page with CASE 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 PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Justin, And just control the CASE with hidden action fields? Thanks, Andras Kende

« previous php.pear.general (#21340) next »