+ 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>

23rd Nov 2018, 2:04 AM
Edison S. Nuñez
Edison S. Nuñez - avatar
1 Odpowiedź
+ 2
Because it's considered as a real code not a string
23rd Nov 2018, 5:44 AM
Taste
Taste - avatar