Re: Problem with sending form to CGI
| From: | Rodrigo Alvarez | Date: | Thu, 04 Aug 2005 10:51:42 +0000 |
| Subject: | Re: Problem with sending form to CGI | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20259@lists.php.net to get a copy of this message | ||
Gabriele Tibaldi wrote:
Hi to all, i'm new on using QuickForm and i need a little help. How can i send the form to a cgi formail? I cannot find any helping example... Sorry for my english and tx in advance!Yo can specify the form action in the third parameter of the constructor: http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.html-quickform.php You can do: <?php require_once 'HTML/QuickForm.php'; $form = new HTML_QuickForm('firstForm', 'POST', 'cgi-bin/formmail.cgi'); [your code here] ?> Please, read the documentation next time. This is explained in the first link of the "Creating a basic form" section of the QF documentation. Regards, Rodrigo.