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


If you are using Codeigniter you can try this:

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

Answered By – Soham Jadav

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published