Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-03-14 23:58:02

lindabb
Member
Registered: 2023-02-17
Posts: 132

conditional output_form

Hello,

I need to do something like this , if _REQUEST = 1 then show specific form on a page!

<txp:php>
if (isset($_REQUEST[‘pid’]))
{ if ($_REQUEST[‘pid’]===‘1’) { <txp:output_form form=“custom_header1” /> }
}
</txp:php>

Thank you

Offline

#2 2023-03-15 08:12:51

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

Re: conditional output_form

Have you tried <txp:if_request value="1">...</txp:if_request>?

Offline

#3 2023-03-15 13:58:48

lindabb
Member
Registered: 2023-02-17
Posts: 132

Re: conditional output_form

Thank you etc,
that worked perfectly , i was able to pass the name and value!

Thanks again

Offline

Board footer

Powered by FluxBB