Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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();?>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading