Re: quickform post
| From: | Antoine | Date: | Wed, 06 Oct 2004 20:00:01 +0000 |
| Subject: | Re: quickform post | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14777@lists.php.net to get a copy of this message | ||
> > where?
> > $form = new HTML_QuickForm('frmTest', 'post','audioin.php');
> > ?
> > or
> > $s =& $form->createElement('select','lang','Select
> > language: ');
> > or both?
> > Cheers
> > Antoine
> > ps, I tried all three combos and none worked :-(.
> >
>
> After the form is posted, you should be accessing it as
> $_POST['lang'], not $_Post['lang'] as you had.
right... sorry, I wrote and didn't copy and paste, and... I am not
that good with forms... it was $_POST['lang'] in the receiving form.
I, very stupidly (I really am not as stupid as it would seem, I
hope!!!), didn't check the source being created and didn't notice that
my query was not setting a value for the select entries. So that was
the problem. I still haven't worked out how to use loadQuery to do
what I want with a single column result, but with loadDBResult and
repeating that column I am now able to get values across to the other
php script (via post). I simply was sending an empty string, hence the
lack of action.
Cheers
Antoine
ps. If anyone has any suggestions for how to put a values column into
loadQuery (for single column results) it would be nice to know... save
me a line of code that way!
--
G System, The Evolving GUniverse - http://www.g-system.at