+ 1
With what extension should i save this page containing both form and php .PHP or .HTML
6 Answers
+ 4
you should save it as a .php file
+ 3
you can save your form in html but process it with a script that is written in a php file.
+ 1
if you have php code.you must need to save it as a .php file..otherwise php code will not execute .
+ 1
Soleyman is not totally right. You can configure your webserver to also interpret other file with PHP. But normally, every file containing PHP, needs to be saved as .php and I would not save a combined file as .html.php - I would save those files in a folder like view to store all your files generating HTML output. Also separate CSS/js files in separate folders and divide application logic from view logic.
0
for easy recognition, you save the file as filename.html .php
0
.php