InnerHTML php include help?

David

New member
Hi im trying the following code

<input type="button" value="Click" onclick="document.getElementById('a').write='<?PHP include('cutenews/show_news.php');?>'"/>
<span id="a">text</span>

so that on click it writes the php include code in the html so that the news page appear on click, but instead when the page loads the news are loaded automatically withouth clicking
 
Back
Top