Re: QuickForm basics

From: Date: Wed, 01 Oct 2003 15:28:42 +0000
Subject: Re: QuickForm basics
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8187@lists.php.net to get a copy of this message
Ahhh that works! But another issue. Shouldn't it submit all the values from the form? I know I can do header('Location: client.php?foo=bar&this=that'); but that seems kind of redundant. That's going to be painfull on other forms with 10-20 fields. Thanks!! Keith Bertrand Mansion wrote:
<keith@setuplinux.com> wrote :
HTML_QuickForm_Controller looks promising, but what I'm doing is pretty simple. I just want to know how to submit the form. This is probally a more simple question than people are used to. I'm using the examples included with quickforms, which of couse only submit to themselves. Below is the code I'm using. WHere do I put in this code where to submit the form too when it validated? The page I want to submit to is "client.php" and I've tried putting that in various places without getting it to work right.
If you don't use the controller, you have to submit the form to itself in order to validate the values and redisplay the form if it's wrong. If it's valid, you can use header('Location: client.php'); to redirect to the next page. Bertrand Mansion Mamasam


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