jquery not sending button choice to php
<p>I have a search function that will accept a search string and send it to a php file for parsing a database column. I'd also like users to choose which aspect of the website they'd like to search (comics, artwork, or both). Comic and Artwork or stored in two separate tables.</p>

<p>This is a function that will accept an input search string from the html below and send it to a php file.</p>

<pre><code>&lt;script type="text/javascript"&gt;

        function search(searchString) {     
            //var site = $("#site").val();
            $.get("./scripts/search.php", {_input : searchString},
                function(returned_data) {
                    $("#output").html(returned_data);
                }
            );
        }
</code></pre>

<p>And this is javascript to accept a choice to search "comics", "artwork" or "all".</p>

<pre><code>        function searchChoice(choice) {     
            alert("Choice: " + choice);
            $.get("./scripts/search.php", {_choice : choice}
           );
        }

&lt;/script&gt;
</code></pre>

<p><strong>HTML:</strong></p>

<pre><code>    &lt;!--Search filtering for comics, artwork, or both--&gt;
&lt;span class="search"&gt;&lt;b&gt;Search for: &lt;/b&gt; &lt;/span&gt;

&lt;div class="btn-group" data-toggle="buttons-radio"&gt;
&lt;span class="search"&gt;
    &lt;button type="button" class="btn" id="comics" onclick="searchChoice(this.id)"&gt;Comics&lt;/button&gt; 
    &lt;button type="button" class="btn" id="artwork" onclick="searchChoice(this.id)"&gt;Artwork&lt;/button&gt; 
    &lt;button type="button" class="btn" id="all" onclick="searchChoice(this.id)"&gt;All&lt;/button&gt; 
&lt;/span&gt;
&lt;/div&gt;

&lt;br/&gt;
&lt;br/&gt;

&lt;!--Search functionality--&gt;
&lt;span class="search"&gt;
    &lt;input type="text" onkeyup="search(this.value)" name="input" value="" /&gt;
&lt;/span&gt;

&lt;br /&gt;
&lt;span id="output"&gt;&lt;span class="sidebarimages"&gt;  &lt;/span&gt;&lt;/span&gt;
</code></pre>

<p><strong>PHP excerpt:</strong> </p>

<pre><code>$input = (isset($_GET['_input']) ? ($_GET['_input']) : 0); 
$siteChoice = (isset($_GET['_choice']) ? ($_GET['_choice']) : "all");
</code></pre>

<p>You can see the javascript correctly alerting out "Choice: comics" when comics button is selected, but the php side, <code>echo "&lt;/br&gt;Choice: " . $siteChoice;</code>, is echo'ing out "all", which is incorrect.</p>

<p><img src="http://i.stack.imgur.com/4wqss.jpg" alt="enter image description here"></p>

<p>Any ideas would be greatly appreciated!</p>
