How-to articles, tricks, and solutions about HTML
Add class="active" to active page using PHP
You can add the "active" class to the active page using PHP by comparing the current URL to the URL of the page you want to mark as active.
Clearing content of text file using php
To clear the contents of a text file using PHP, you can use the file_put_contents() function.
Confirm button before running deleting routine from website
Yes, you can add a confirm button before running a delete routine on a website using PHP.
Converting <br /> into a new line for use in a text area
In PHP, you can use the nl2br() function to convert line breaks (\n or \r\n) to <br /> tags.
How can I select and upload multiple files with HTML and PHP, using HTTP POST?
You can use the following HTML code to create a form that allows users to select and upload multiple files.
How can I view/open a word document in my browser using with PHP or HTML
You can use the PHP function readfile() to read the contents of a Word document and then use the appropriate headers to prompt the browser to open or download the file.
How do I add PHP code/file to HTML(.html) files?
To add PHP code to an HTML file, you will need to use PHP tags.