Welcome Guest, Not a member yet? Register   Sign In
Applying a style sheet class to a Form
#2

[eluser]TWP Marketing[/eluser]
From the User Guide:
http://ellislab.com/codeigniter/user-gui...elper.html

Quote:Adding Attributes

Attributes can be added by passing an associative array to the second parameter, like this:

Code:
$attributes = array('class' => 'email', 'id' => 'myform');

echo form_open('email/send', $attributes);

The above example would create a form similar to this:
Code:
<form method="post" accept-charset="utf-8" action="http:/example.com/index.php/email/send"  class="email"  id="myform" />


Messages In This Thread
Applying a style sheet class to a Form - by El Forum - 09-16-2012, 02:26 PM
Applying a style sheet class to a Form - by El Forum - 09-16-2012, 02:47 PM
Applying a style sheet class to a Form - by El Forum - 09-17-2012, 12:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB