I have a table which echos a button, currently this button takes you to the 'details.php' with £booking_id record taken over to the new php scrpit. Here is my current code:
echo '<td>a href="Details.php?id='.$row['booking_id'].'"><button>View Details</button></td>';
I would like this button to open a new popup window. How do i merge the two together, so when i click the button the popup window and takes the 'booking_id' record over. i have the java script code:
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="JavaScript:newPopup('Details.php);">View Details</a>