mercredi 22 avril 2015

codeigniter view strange passing data to a function

im a big problem with codeigniter php... i need to pass a value to a function in the same page of the view...

the code of the view:

echo '<div class="styled-select"> ';
echo '<fieldset>Select';
echo form_open('site/check_out');
echo form_dropdown('select', $options);
echo '</fieldset>';
echo form_submit('submit','Check-Out !');
echo '<div/>';  

the code of the controller:

function check_out($select) {


I need to pass the value of the form_dropdown to the function check_out like parameters of the function check_out($select);

i'm a newbie sorry for the error

any suggest ? thanks averybody

Aucun commentaire:

Enregistrer un commentaire