I want to pass the id of a particular div in a P.H.P page to another P.H.P page when it is clicked dynamically.The div who's id i want to pass, is created dynamically.So far I have fetched the id of the div dynamically by using Java script, but i cant seem to pass this value to another P.H.P page.
<?php
while ($row = mysql_fetch_assoc($result))
{
$link = $row["video_link"];
$video_id = explode("?v=", $link);
$video_id = $video_id[1];
?>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="post_list_content_unit">
<div class="post_list_featured_image" onclick="markActiveLink(this);" id="<?php echo $video_id?>">
<script type="text/javascript">
function markActiveLink(e) {
alert(e.id);
}
</script>
<a href="video_tut.php" title="View post details">
<img width="370" height="193" src="http://img.youtube.com/vi/<?php echo $video_id?>/hqdefault.jpg" class="img-responsive wp-post-image" alt="Teen girl sitting with a laptop" />
?>