Q:

A way to make html form disappear?

What is the recommended or most efficient way (least code/fastest) to make a html form dissapear from a page once the submit button has been pressed and then put in its place the output of a .php file?

A:

Use Ajax, with JQuery
http://api.jquery.com/jQuery.ajax/
Create a div for the response (#response_content), and in the callback of the function do something like
$("#form_id").hide();
$("#response_content").html(data);

