Activate action onClick in PHP
<p>I have the following chunk of code:</p>

<pre><code>while ($row = mysql_fetch_array($result)) {
    echo "&lt;li/&gt;".$row['trendName']."&lt;input type='submit' name='Dispay' value='Display All Items'  onclick='action='http://blah.co.uk/DisplayData.php';'/&gt;";
    echo"&lt;br /&gt;";
}
</code></pre>

<p>So, this I want to do is for each element on the list to create a button. When I will click at this button I want to hit a URL. </p>

<p>Let's say that we have only one element on the list (<code>Movies</code>). By clicking on the button next to the movies, I want to move to another URL: <code>http://blah.co.uk/DisplayData.php</code>
and furthermore to pass to the other URL the name of the element (i.e. <code>Movies</code>)</p>

<p>Is this possible, and if so, how?</p>
