set value of input on form to a $_GET array : <p>I have a page that is receiving an array from $_GET. Lets say it has 3 values in $_GET['types'] containing: 'good', 'bad', and 'ugly'. Now on this page I am setting up a form and I need to pass this array into the form through an input. Maybe this short piece of code can help demonstrate what I'm trying to do</p>

<pre><code>&lt;form action="dosomething.php" method="get"&gt;
    &lt;input name="types[]" value="&lt;?php echo $_GET['types']; ?&gt;" /&gt;
&lt;/form&gt;
</code></pre>

<p>How can I accomplish this?</p>
