Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
Pages: 1