This question already has an answer here:
- How can I get a div content in php 3 answers
I have the function xy that writes php to the document:
go.php
<?php
$file_data = '?';
$file_data .= file_get_contents('xml.xml');
file_put_contents('xml.xml', $file_data);
?>
")}
HTML
<div id="content"contenteditable>
<contenttag>hello</contenttag>
<logo>hi</logo>
</div>
I would like the content of the #content
to be written to the start of XML.xml
Note: I could not find a clear answer on Google
</div>