dimanche 29 mars 2015

same page, double form_open, double form_submit, but the same form_input

Im newbie and you know it...


i have this problem in one page: 2 form_open... 2 form_submit... but the same form_input !


I'm trying with the code:



$animal='placeholder="Animal"';
$name='placeholder="Name"';

echo form_open('site/check_in');
echo form_open('site/check_in_pay');

echo '<fieldset>Name';
echo form_input('name','',$name);
echo form_input('animal','', $animal);

echo form_submit('submit','Check-In !');
echo form_submit('submit','Check-In and pay !');
echo '</fieldset>';


Now, what can i do in the controller ?


thanks a lot


Aucun commentaire:

Enregistrer un commentaire