구분 결과
Form Option
$attr Array ( [class] => form_cls [id] => myform [name] => myform )
$hidden Array ( [username] => Joe [member_id] => 234 )
$string Here is a string containing "quoted" text.
Form
form_open() <form action="/ci20/form_hlp" method="post" accept-charset="utf-8">
form_open('form_hlp/add') <form action="/ci20/form_hlp/add" method="post" accept-charset="utf-8">
form_open(NULL, $attr) <form action="/ci20/form_hlp" method="post" accept-charset="utf-8" class="form_cls" id="myform" name="myform">
form_open(NULL, $attr, $hidden) <form action="/ci20/form_hlp" method="post" accept-charset="utf-8" class="form_cls" id="myform" name="myform"><div style="display:none"> <input type="hidden" name="username" value="Joe" /> <input type="hidden" name="member_id" value="234" /> </div>
form_open_multipart() <form action="/ci20/form_hlp" method="post" accept-charset="utf-8" enctype="multipart/form-data">form_open() 와 동일하나 multipart 속성을 추가한다
form_hidden('username', 'johndoe') <input type="hidden" name="username" value="johndoe" />
form_hidden($hidden) <input type="hidden" name="username" value="Joe" /> <input type="hidden" name="member_id" value="234" />
form_close($string) </form>Here is a string containing "quoted" text.
Input Option
$input Array ( [name] => username [id] => username [value] => johndoe [maxlength] => 100 [size] => 30 [style] => width:30% )
$js onClick="some_function()"
Input
form_input('username', 'johndoe')
form_password($input)
form_upload($input, NULL, $js)
form_textarea($input)
Select Option
$options Array ( [small] => Small Shirt [med] => Medium Shirt [large] => Large Shirt [xlarge] => Extra Large Shirt )
$seljs onChange="some_function()"
Select
form_dropdown('shirts', $options, 'large')
form_dropdown('shirts', $options, array('small', 'large'))
form_dropdown('shirts', $options, 'large', $seljs)
Checkbox, Radio Option
$chk_opt Array ( [name] => newsletter [id] => newsletter [value] => accept [checked] => 1 [style] => margin:10px )
$js onClick="some_function()"
Checkbox, Radio
form_checkbox('newsletter', 'accept', TRUE)
form_radio($chk_opt)
form_radio($chk_opt, NULL, NULL, $js)
Label
form_label('What is your Name', 'username') <label for="username">What is your Name</label>
Button Option
$btn_opt Array ( [name] => button [id] => button [value] => true [type] => reset [content] => Reset )
$js onClick="some_function()"
Button
form_submit('mysubmit', 'Submit Post!')
form_reset('myreset', 'Reset Post!')
form_button('name','content')
form_button($btn_opt)
form_button('mybutton', 'Click Me', $js)
Fieldset
form_fieldset()
form_fieldset_close()
Address Information

fieldset content here

Address Information

fieldset content here

Etc
form_prep($string) Here is a string containing &quot;quoted&quot; text.
set_value()
set_select()
set_checkbox()
set_radio()

// End of Sample

© Copyright by hoksi(Page rendered in 0.0033 seconds)