I am working on one assignment. I had to write code for sending the report in email. When I open HTML page and click on the button then it sends in email.
BUT suppose I have 10 reports, and I want that when I click on send button it should send in email. Because I have used
$html=file_get_contents("html_report.html");
in PHP code. It works for only html_report.html but I want it to work for rest 10 files.
For example : I have 1.html,2.html...10.html,I want to that whenever I open any HTML file and click on the button then it should send. So what should I write in
$html=file_get_contents(
"WHAT SHOULD I WRITE HERE");
so that it will work for 10 files.
any help will be appreciated.