Can we make form tag in PHP?

I have a question is how to write a form tag in PHP I am using HTML form i want to make it in PHP if it’s possible

<form method="POST" action=""></form>

here is my HTML code

>Solution :

Yes You can try with this

<?php $attr = array('data-toggle' => 'validator', 'role' => 'form', 'method' => "post");
   echo form_open_multipart("branch/table/import_data", $attr);
<?php echo form_close();?>

Leave a Reply