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