I have a table populated by MYSQL results, and at the end of the table is a php link that once clicked opens a modal form for some additional information to be added.
The php link is shown below:
echo "<a href=\"?ip_address=".$ip_address."#accSettings1\" role=\"button\" class='btn btn-small btn-primary hidden-tablet hidden-phone' data-toggle='modal'>Add</a>";
in the above link the #accSettings1 is the trigger for the modal form, this works perfectly but if the link is clicked the form opens but the variable isn't passed to the form, nor does the variable get passed through the address bar.
now if i take out the
then the variable ip_address appears in the address bar like so:
but because i have removed the data-toggle the modal box doesn't open.
does anybody have any ideas?