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 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 2
Because it's considered as a real code not a string
23rd Nov 2018, 5:44 AM
Taste
Taste - avatar