400 users using DBSP now!
home -> documentation -> language reference ->TRANSFORM tag


Description

The TRANSFORM tag allows you to apply different string transformations to a certain block of code.


Syntax

<#TRANSFORM TRANSFORMATION="trans">
.
.
<#/TRANSFORM>

Transformation Specify in this property the string transformation to apply. The valid transformations work as follows

Valid transformations

uppercase Transforms all the bounded block code to upper case.
lowercase Transforms all the bounded block code to lower case.
crypt Encrypt the bounded block using the 128 bits site key.
decrypt Decrypt the bounded block using the 128 bits site key.
html Converts all the bounded block of code to HTML visible characters using hex codes.

Note: The code is first interpreted and then the result is transformed.

Applications

Use the TRANSFORM tag to apply different transformations to certain blocks of code:

  • Formatting text for its presentation.
  • Insert DBSP/HTML source code into your DBSP® pages.
  • Encrypt/decrypt sensible information in your database (Like credit card information, documents or user passwords).

Operative examples

Example 1. All the possible tansformations using TRANSFORM.

See all the possible transformations in one page.

Source code

Test example



Example 2. Storing sensible information in your database.

Sensible information could be stolen if your database gets compromised. See how DBSP® could help you to secure your information.

Source code

Test example