Re: Re: Problem with sending form to CGI
| From: | Gabriele Tibaldi | Date: | Thu, 04 Aug 2005 11:02:49 +0000 |
| Subject: | Re: Re: Problem with sending form to CGI | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20260@lists.php.net to get a copy of this message | ||
Thanks for your answer, but unfortunatly using the solution you propose,
on clicking 'submit' it goes directly to the form mail without
validating the form on the server-side.
Thanks in advance for any further advice you'll feel like giving,
Gabriele
Il giorno gio, 04/08/2005 alle 12.51 +0200, Rodrigo Alvarez ha scritto:
> 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.
>
--
Tibaldi Gabriele
Web Design & Sviluppo Software
05040361 +39 3388563578
www.akensoft.it