[ create a new paste ] login | about

Link: http://codepad.org/A5saoAgb    [ raw code | output | fork ]

PHP, pasted on Jan 24:
1
2
3
4
5
6
7
8
9
10
11
12
<form action="<?php bloginfo('url'); ?>" method="get">

<?php
$taxonomies = array('subjects');
$args = array('orderby'=>'name','hide_empty'=>true);
$select = get_terms_dropdown($taxonomies, $args);
 
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
echo $select;
?>
    <noscript><div><input type="submit" value="Go" /></div></noscript>
    </form>


Output:
1
2
<form action="
Fatal error: Call to undefined function bloginfo() on line 1


Create a new paste based on this one


Comments: