Help me fixing a BUG PHP + Javascript

Job ID: 32520370

Budget: ₹600 – ₹1,500 INR

I need to copy the the Body tag of current page & then save it to Database using php. on click on a button.

var x = document.body.innerHTML;
Related categories: PHP JavaScript AJAX MySQL HTML