+ 1
I was trying to make a div element change the displayed php file (using php include) when a button is clicked. my code don't sho
<div id = "centerpane"> <button onclick="myFunction()"><</button> <script> function myFunction() { document.getElementById("centerpane").innerHTML = "<?php include('uploadsdisplay.php')?>"; } </script> </div>
1 Odpowiedź
+ 2
Because it's considered as a real code not a string