PHP inside <div>

All Quick 'n Easy Web Builder support issues that are not covered in the forums below.
Post Reply
mysli
Posts: 4
Joined: Wed Feb 22, 2023 4:17 pm

PHP inside <div>

Post by mysli »

Hi,

I have placed a text element on my website for which the displayed text (content) should be read from a database.
I now placed a <?php ... ?> block in the text field on the QnE Editor, to hope this exact php string ends up
between <div>...</div>. Like so:
<div><?php ...some php code...?></div>

Doing it directly in the generated file works perfect, but doing it from within QnE Editor changes my php inputs
to something which is no longer processable:
<div>&lt;?php ...?&gt;</div>

How can I workaround that problem?

Best regards
Daniel
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: PHP inside <div>

Post by Pablo »

The text is encode intentionally otherwise users would not be able to use special symbols in the text.
To include PHP code you can use the 'HTML' object or insert it via Page HTML.
Post Reply