Re: quickform post

From: Date: Tue, 05 Oct 2004 22:00:29 +0000
Subject: Re: quickform post
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14768@lists.php.net to get a copy of this message
On Tue, 5 Oct 2004 23:01:52 +0200, Antoine <melser.anton@gmail.com> wrote: > 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? It should be $_POST['lang'] -- paperCrane --Justin Patrin--

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