+ 1

is it necessary seperating html and php code

which one is more recommended? option 1: <?php?> <html></html> option 2: <html><form action="form.php></form></php>

12th Jun 2018, 12:56 PM
boyd
boyd - avatar
1 Answer
+ 1
Both. But I like the first one. I always leave the action attr empty.
12th Jun 2018, 2:02 PM
Toni Isotalo
Toni Isotalo - avatar