A “Code” page/section allows web programmers who know php, to enter specialised, customised php code for a page, from scratch.
A code section is supposed to contain php code, and will cause errors if it contains just plain html, or plain text!
The Code Editor contains a simple text area, where the php code can be typed.
Simply enter the code in the text area, as desired, and click the “Save” button when ready. To go back to Admin->Pages without saving, click “Cancel”.
You are neither required nor allowed to use an opening “<?php”, nor a closing “?>”.
If you use opening and closing php tags in your code – for instance, to intermix your php code with straight html - they will be removed when saving, and will cause an error when the page is viewed!
Copyright (c) 2007 Website Baker Help team
Text and images of this page are licensed under a Creative Commons Attribution-NonCommercial-No Derivative 3.0 Licence. You are free to copy and distribute this work for noncommercial purposes as long as no changes are applied and this copyright notice and a backlink to http://help.websitebaker.org are provided.