Hello everybody, I'm a bit stuck here: I am using <div>s and CSS instead of tables and I've got an index.php, which looks like: <? include "header.inc"; include "content.php"; include "footer.inc"; ?> PHP: in content.php I also use include for various .html and .php files. Now my problem is: If I use a contact form (contact.html) and it triggers a php script (contact.php), how can the output of contact.php be displayed in the same <div>? Right now a blank page appears with the text "The mail has been sent.", but I want it to appear in the content part of my page. Any kind of help is appreciated.
If you're asking what I think you're asking, here's one approach that I think is fairly common: Take everything in contact.html and put it into contact.php (yes, this is an oversimplification). Then change anything that points to contact.html so it points to contact.php instead. In contact.php, check to see how you were called (add a hidden element to the submit form, or just check to see if there are values for the fields in the form, whatever). If the user just clicked on the "Contact Us" link from a different page, just display the stuff from contact.html. If the user submitted the form (and called this page again), send the email and display the results as appropriate. Does that make sense, or did I read your question wrong?