Including files for 'thank you' message (See more user questions)
Hi .
What you need to know is where to include your files in the script code. If
using a template for the thank you message, locate this line of code in the
script:
print $html_output;
Above it, include your header, and below it include your footer, for
example:
include('header.php');
print $html_output;
include('footer.php');
Note that the above code is within PHP opening and closing tags, so you
don't need to use <?php ?> for every line of code.
Alternatively, if you just want to make a fixed "thank you" message but
include a header and footer, you can use the default "thank you" message
HTML in the script, and put your includes either side of it, like so:
<?php include('header.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
...
</html>
<?php include('footer.php'); ?>
You will notice in this case, the PHP lines have opening and closing PHP
tags. This is because they are mixed with HTML. I have a brief tutorial
about editing PHP code, here:
https://formtoemail.com/developersupport/editing_php.php
I should say, if you are using includes and a template, you are bound to
need to code the template in accordance with your existing files.
Any questions, just let me know.
Best wishes.
Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!
----- Original Message -----
Sent: Sunday, June 27, 2010 7:04 AM
Subject: Re: FormToEmail script
>>> Comments: Hi Charles
>>>
>>> I am having a problem with the "Thank you message template" for one of
>>> our sites.
>>>
>>> The pages of the site have PHP includes for the page header, etc. but
>>> the include does not work in the thankyou.php file.
>>>
>>> <?php include( 'banner.htm' ); ?>
>>>
>>> Is there anything that I can do to make this work, as with the other
>>> pages of the website?
>>>
>>> Thanks