How to POST multiple Variable in JavaScript inside PHP? -


i trying pass multiple variable using javascript , php, not being able that.

echo "<a href=javascript:popcontact('btsdetails.php?uid=" . $row["bs_id_site"] . "&sid=" . substr($row['bs_id'], -1) . "')>" . $row['bs_id'] . "</a>"; 

therefore, trying post "uid" , "sid" using & sign, not working. accepting "uid".

can me solve problem?

here answer:     <script type="text/javascript">     function popcontact(uid, sid){         window.location = "btsdetails.php?uid="+uid+"&sid="+sid;     }     </script>      <a href="#" onclick="popcontact(<?php echo $row["bs_id_site"]; ?>, <?php echo substr($row['bs_id'], -1); ?>)"><?php echo $row['bs_id']; ?></a> 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -