구분 | 결과 |
---|---|
Form Option | |
$attr | |
$hidden | |
$string | |
Form | |
form_open() | |
form_open('form_hlp/add') | |
form_open(NULL, $attr) | |
form_open(NULL, $attr, $hidden) | |
form_open_multipart() | |
form_hidden('username', 'johndoe') | |
form_hidden($hidden) | |
form_close($string) | |
Input Option | |
$input | |
$js | onClick="some_function()" |
Input | |
form_input('username', 'johndoe') | |
form_password($input) | |
form_upload($input, NULL, $js) | |
form_textarea($input) | |
Select Option | |
$options | |
$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 | |
$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') | |
Button Option | |
$btn_opt | |
$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() |
|
Etc | |
form_prep($string) | |
set_value() | |
set_select() | |
set_checkbox() | |
set_radio() |
// End of Sample
© Copyright by hoksi(Page rendered in 0.0033 seconds)