codeigniter form open specify id

codeigniter form open specify id  using -'forms,codeigniter'

How can I write the form ID in the form_open function in CodeIgniter? (I need to use the ID for the CSS).
For example, this is simple HTML:

<form method="post" action="" id="my_form">

I am trying the following code, but it does not work:

<?php echo form_open('my_form'); ?>


asked Sep 15, 2015 by EvaAbdelaziz7
0 votes

1 Answer

0 votes

$attributes = array('id' => 'myform');
echo form_open('email/send', $attributes);
answered Sep 15, 2015 by AndMoses