I would like to know how to in a link a variable?
http://201.76.188.6:8090/call.php?exten=7601&number=[celular]
I'm doing this: (did not work)
<!doctype html>
<html>
<head
<meta charset="utf-8">
<title>Documento sem título</title>
</head>
<body>
<?php
include ('conexao.php');
$query = "SELECT 'ddd', 'celular' FROM 'Cliente' WHERE 1 " ;
$meliga = "$ddd, $celular" ;
?>
<script>
var numero = "<?php echo $meliga; ?>";
</script>
<a href="#" onclick="window.open('http://201.76.188.6:8090/call.php?exten=7601&number=' + numero)" target"_blank">Me Ligue</a>
</body>
</html>