i have code :
<div id="modal" style="display:none">
<?php $name = $_GET['name']; echo $name; ?>
</div>
$sql = mysql_query(SELECT * FROM data);
while($data = mysql_fecth_row($sql)){
echo "<a href=\"#modal?name=".$data[0]."\" id=\"modal_id\">name</a>;
}
this popup not show, but if I delete "?name=".$data[0]"
this popup show but "$name"
is empty.
how to this popup show and the "$data[0]"
include in #modal
..?
thanks
That's because, here is what a url should end with:
And you are making it:
And what you should have done is: