• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting post variables from the form helper

#1
[eluser]Unknown[/eluser]
hi all --

I'm using the form helper to make a form (of course) -- it should load the page again with the selected variable changed, i.e. language selection -- english, french, etc.

but for some reason I can't get the selected variable. it's a drop down list and the code looks like this:

$this->load->helper('form');

switch ($lant)
{
case "en": $this->lang->load('mustica', 'english');
break;

case "fr": $this->lang->load('mustica', 'french');

break;
}

echo form_open('index_gauche/menn');
$options = array(
'en' => $this->lang->line('menu_en'),
'fr' => $this->lang->line('menu_fr'),
);
$js = 'onChange="submit()"';

echo form_dropdown('lant', $options, 'en', $js);

echo form_close();


I try to read the "lant" variable several ways, namely $_POST, but get nothing. any clues?


Messages In This Thread
getting post variables from the form helper - by El Forum - 07-13-2007, 01:15 AM
getting post variables from the form helper - by El Forum - 07-16-2007, 08:24 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.