I got banned and can no longer ask questions. In hopes to rectify this, I'm editing my most down-voted threads with this block of text. My intention was never to clog Stackoverflow with dumb questions or to leech off the community, but I did at some point. I've realized my damage from reading this helpful thread How to Ask Questions the Smart Way. Now I'm hoping for forgiveness from the community for my unintentional damage. Thank you
Now I have to start on the second feature: open an invoice. I have thought of one way I could make this.
When a new invoice is made and input is copied into the other page, to also copy all the HTML from the form in which all the inputs are into a text file with PHP - and later when a user "opens" an invoice, it just opens the file which just copies all the HTML code.
I don't know how to copy part of the code into a text file. So any help here?
If you also know an easier, better way please tell.
Use output buffering.
Before you render anything out to the browser do
after you do your rendering get the html content.
$html = ob_get_contents();
then to send it to the browser do.
Then with the $html you can save to file, database or whatever works for your use case