Click here to Skip to main content
15,921,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. I would like to know what is better practice while making web application. Is it better to store html page and php code separately or to make for example one index.php file that contains both php and html? What if I have separate html and php code and I want to validate form or send user message about accomplishing a task. This "problem" is, for me, much easier to solve if you have php and html together (just echoing the message).

What I have tried:

So far, I know that I can send data from PHP to Javascript by using AJAX but is this the way professionals would do it?
Posted
Comments
[no name] 2-Jul-16 15:37pm    
Be patient, I'm also looking for a Statement on this ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900