Welcome Guest, Not a member yet? Register   Sign In
Using form helper? Is there a way to modify the DOM?
#4

Hi,
the output of the form in the view at a specific place can be done like this:

PHP Code:
$form form_open('views/User_Activity_Survey.php');
$form .= form_checkbox"test1""Question1",FALSE"class=form-checkbox id=input_4_3 name=q4_whichOf[]" );
$form .= form_checkbox"test2""Question2",FALSE"class=form-checkbox id=input_4_3 name=q4_whichOf[]" );
$form .= form_checkbox"test3""Question3",FALSE"class=form-checkbox id=input_4_3 name=q4_whichOf[]" );
$form .= form_fieldset_close();

$this->load->view('User_Activity_Survey.php', ['form' => $form]); 

and in the place you need of User_Activity_Survey.php:
PHP Code:
<?php echo $form?>
Reply


Messages In This Thread
RE: Using form helper? Is there a way to modify the DOM? - by vitnibel - 09-21-2020, 07:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB