Pass a PHP variable in a link to a Modal box
<p>Hi i have a html link to a modal box which works perfectly, now what I am trying to do is pass a variable to the form in the modal box, how ever the link shows but nothing happens once it is clicked. </p>

<p>Here is my normal code: </p>

<pre><code>   &lt;a href="#accSettings1" role="button" class="btn btn-small btn-primary hidden-tablet hidden-phone" data-toggle="modal" data-original-title=""&gt; Add &lt;/a&gt; 
</code></pre>

<p>Here is my PHP code</p>

<pre><code>   echo "&lt;a href=\"#accSettings1?ip_address={$ip_address}\" class='btn btn-small btn-primary hidden-tablet hidden-phone' data-toggle='modal' data-original-title=''&gt;Add&lt;/a&gt;";
</code></pre>
