Other probs to pass variable from php to js
Posted: Sat May 25, 2013 4:21 pm
Hi ,
I have also this probs to pass a variable :
If i use a static value like 192.168.0.250 inside innerHTML the code work . If i use a variable $ip ( passed from other php code ) don't work. Again sintax probs ?
Thanks in advance.
brasileottanta
I have also this probs to pass a variable :
Code: Select all
<?php
$ip=$_POST['ip'];
?>
<script>
............
var unbinding = document.getElementById('unbind');
unbinding.innerHTML = '<iframe src="http://xxxxx/binding-off.php?ipclient=$ip" "width="1" height="1"></iframe>';
.......
</script>
Thanks in advance.
brasileottanta