Question: how php and html interact?
Answer: It is possible to generate HTML through PHP scripts, and it is possible to pass informations from HTML to PHP. PHP is a server side language and HTML is a client side language so PHP executes on server side and gets its results as STRING, ARRAYs, OBJECTS or so and then we use results to display its values in HTML.