Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
PHP output Txp Form
Hi, can anyone see what the problem is with this, as basically it works but the TXP code isn’t being executed:
<txp:php>
$browser = strpos($_SERVER['HTTP_USER_AGENT'],"MSIE");
if ($browser == true) {
echo '<txp:output_form form="msie" />';
exit;
}
</txp:php>
~ Cameron
Offline
Re: PHP output Txp Form
echo output_form(array('form' => 'msie'));
or the less-efficient:
echo parse('<txp:output_form form="msie"/>');
Offline
Re: PHP output Txp Form
Why is the second one less efficient? thanks
~ Cameron
Offline
Re: PHP output Txp Form
driz wrote:
Why is the second one less efficient? thanks
Because it calls tag parsing once againg – it uses more process time than direct calling form.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Pages: 1