Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-03-19 18:02:15

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: How do I add an id attribute to txp:popup's select element?

The result each time was this:

<pre> 
array (
)
</pre>

Here are the different variations I tried:

Test 1 code:

<txp:php>
preg_match('/(.+)<select/s', popup(array()), $matches);
dmp($matches);
</txp:php>

Test 2 code:

<txp:php>
preg_match('/(.*)<select/s', popup(array()), $matches);
dmp($matches);
</txp:php>

Test 3 code:

<txp:php>
preg_match('/(.*)<select/sx', popup(array()), $matches);
dmp($matches);
</txp:php>

Test 4 code:

<txp:php>
preg_match('/(.+)<select/sx', popup(array()), $matches);
dmp($matches);
</txp:php>

Offline

Board footer

Powered by FluxBB