Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-03-08 08:01:53

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Using php pages as content

Hello,
I made a multipage survey/questionnaire, with sessions, $_POST and so on, and I’d like to use it as the content of a txp website. Do you have any suggestions?

Thank you very much!!

Offline

#2 2012-03-09 13:39:36

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Using php pages as content

Use TXP as a PHP framework and wrap your PHP in txp:php tags inside an article or inside a page. Make sure to allow PHP in articles or pages.

What do I miss in your question if you tried that already?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#3 2012-03-10 14:20:07

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: Using php pages as content

Thanks Markus!
I’m not proficient in php, my doubts were about $_session and $post, which as you tell my just work as normal…

Offline

#4 2012-05-23 07:57:07

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: Using php pages as content

This will make your php code searchable, I’d rather put it in a form.

Offline

Board footer

Powered by FluxBB