PHP

With PHP you can exchange information with databases, send data by email and execute PHP code on the webserver.

To add PHP code to your page choose Insert > PHP. Double click PHP item and type the code.

To write text on the screen use "echo" command for example:

echo 'Hello John';

PHP code must be executed by the webserver. It will not work on your local computer. To run PHP code you have to upload files to your website and open the page from the website.

The text will be written with the default font. To change the font style of PHP item select it and choose Item > Set Font.

Passing variables to PHP

Data can be sent to PHP code in the URL after the ? sign. For example:

http://www.mywebsite.com/mycode.php?firstname=John

These variables are accesible by the $_REQUEST array

echo 'Hello ' . $_REQUEST['firstname'];

To learn more about PHP visit W3 website: