# PHP in a landing page

**URL:** https://forum.mautic.org/t/php-in-a-landing-page/8483
**Category:** Product Support
**Created:** [May 12, 2017, 9:22am UTC](https://forum.mautic.org/t/php-in-a-landing-page/8483 "2017-05-12T09:22:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![goodmarketing](https://avatars.discourse-cdn.com/v4/letter/g/3ab097/32.png) [@goodmarketing](https://forum.mautic.org/u/goodmarketing)
#### Post date: [May 12, 2017, 9:22am UTC](https://forum.mautic.org/t/php-in-a-landing-page/8483/1 "2017-05-12T09:22:58Z")

</div>

Is there a way to insert PHP in a landing page? It gets commented out on save.

---

<div class="post-metadata">

### Author: ![goodmarketing](https://avatars.discourse-cdn.com/v4/letter/g/3ab097/32.png) [@goodmarketing](https://forum.mautic.org/u/goodmarketing)
#### Post date: [May 12, 2017, 9:22am UTC](https://forum.mautic.org/t/php-in-a-landing-page/8483/2 "2017-05-12T09:22:58Z")

</div>

Is there a way to insert PHP in a landing page? It gets commented out on save.

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [May 12, 2017, 12:14pm UTC](https://forum.mautic.org/t/php-in-a-landing-page/8483/3 "2017-05-12T12:14:29Z")

</div>

I use PHP landing page but outside Mautic. I have tried this in the previous version with not luck need to test in the new version

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [May 15, 2017, 9:43am UTC](https://forum.mautic.org/t/php-in-a-landing-page/8483/4 "2017-05-15T09:43:56Z")

</div>

+1 for this question.

You could insert your PHP code on database level. But please don’t re-open your template in the editor after that. 😉
