Twinstream wrote:
Well, now I am curious. What is a PHP include?
PHP is a programming language for web sites. So, for instance, I can create a page (call it datalist.php) and add code that pulls a list of businesses out of database. I then add code that creates the html to display it on the page.
In RSD/RFF/RBB, I can add an html element with one line of code that says:
<?php include('datalist.php'); ?>
I can have that html element on one page or many pages. Wherever it appears, it will add the list of businesses in that spot on the page.
In the same way, you can put this in the header box in the Settings Pane:
<?php include('headerfile.php'); ?>
or footer box in the Settings Pane:
<?php include('footerfile.php'); ?>
Whatever you have in the headerfile.php will display in the <head> and whatever you have in footerfile.php will appear at the very bottom of the page.
One thing you need to know, though, is PHP is a server-side scripting language. That means that it computes everything BEFORE sending it to the browser. Therefore, if you just preview it in your browser on your computer, you will not see the PHP includes (unless you set up your computer to do so). Ideally, you should upload the files to a development section of your hosting account and preview it from there. If you don't have a development section (or haven't set one up), you can upload to and preview it from your live account, but then the public can see it.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/