PRINT

[[PRINT:variable]] aka ECHO

not for use inside other shortcodes or html tag attributes.

Example:

[[PRINT:"Hello World"]].[[cr]]
[[INITIALIZE:first_name|Joe]]
[[INITIALIZE:last_name|Lee]]
Hello, [[PRINT:first_name]] [[PRINT:last_name]].[[cr]]

Will output:

Hello World.
Hello, Joe Lee.

 

Note: Use [[=variable]] for embedding your dynamic values inside other shortcodes or use as an html attribute value..

Examples:

[[INITIALIZE:var1|World]]
[[INITIALIZE:var2|background-color:red;]]
<div style="[[=var2]]">
Hello, [[PRINT:var1]]
</div>

output :  <div width=”100%”>Hello,  World</div>

 [[QUERY_STRING:anything]]
 [[PRINT:anything]]
 [[FORM:#this]]
 [[INPUT:First_Name|[[=anything]]]]
 [[INPUT:Last_Name|Enter Your Last Name]]
 [[SUBMIT:Save]]
 [[END_OF_FORM]]

This form example uses  [[=anything]]

for embedding the  value contained in the variable “anything” as a default value for the first INPUT shortcode..

Leave a Reply