Hi all, I used this method (link below) for my website, which works like a charm.
http://www.daniweb.com/forums/thread277139.html
Now some of my website structure is :
index.php
contact.php
mail-sender.php - ( script to send emails)
template/wide_panel.php - (template where the content is)
content/wide_panel/contact.php -( the content of the contact.php)
content/wide_panel/error_invalid-email.php - ( the content of one of the 2 files)
My problem is, mail-sender.php is going to ask for 2 other .php files ( the error_invalid-email.php and another one) which is then going to use the method above for the template of the 2 pages.
If I use that method, both pages are going to be displayed when only one of them is suppose to be.
What code should I use on the template/wide_panel.php to tell it, if mail-sender.php asks for error_invalid-email.php display error_invalid-email.php if it asks for the other file display the other file.
Any suggestions will be really appreciated
Thanks in advanced