deleting the html and using php