quickform post
| From: | Antoine | Date: | Tue, 05 Oct 2004 21:01:52 +0000 |
| Subject: | quickform post | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14767@lists.php.net to get a copy of this message | ||
hi,
I am having some troubles trying to recuperate a variable I thought I
was posting...
$form = new HTML_QuickForm('frmTest', 'post','audioin.php');
$s =& $form->createElement('select','lang','Select language:
');
$s->loadQuery($db,'SELECT lang FROM lang');
$form->addElement($s);
$form->addElement('text', 'movie', 'Enter movie ID: ');
$form->addElement('submit', 'btnSubmit', 'Submit');
$form->display();
The select gets filled correctly, and movie gets posted to
audioin.php, but I get nothing in $_Post['lang'] in audioin.php. Can
someone tell me what I am doing wrong here?
Cheers
Antoine
--
G System, The Evolving GUniverse - http://www.g-system.at