Going html to php then wants to get back to html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Going html to php then wants to get back to html

I ma creating an app using web . I have a form that action='./form.php' so , php runs and gives relevant data and result . Since there are lot of things that should be in html . So help me to get back to html . In short , <form action='./form.php' method='post'> .... </form> when I click on submit php file runs , is there any method to return to html file

13th Sep 2020, 11:39 AM
Priyanshu Gupta(प्रियांशु गुप्ता)
Priyanshu Gupta(प्रियांशु गुप्ता) - avatar
1 Answer
+ 2
You can use header function to redirect to the HTML file once you're done processing form data. https://www.w3schools.in/php/php-headers/
13th Sep 2020, 12:14 PM
Ipang