I am trying to call a .php or .html file to display an input page for emails.
The file ContactDisplay.php contains a <button> to onclick a call to the sendEmail() function which, in turn, sends data to the file ContactEmail.html. The data is retrieved using $_POST and used to populate the <form> contained in ContactEmail.php.
Please see attached file.
The problem is: The form is not displayed nor is the result of print_r($_POST). The 'response' area of FIREBUG shows the total source code of the ContactEmail.php file.
I suspect this is the result of some stupid thing I've done but would appreciate some help in resolving the problem.