Web Developer Notes - Page 10

php

How to Send HTML Form Data to Email Using PHP

Last updated: 21.02.2026
Views: 286
Sending a form to email is an important and common way of communicating with a web resource user. Let's write a simple form for sending data to email using the PHP mail() function. Our form will also write data to a file on the server. The code is not tied to any CMS and can be used anywhere. It is important that the mail() function is enabled on your hosting. [php] <?php if(isset($_POST[&#...
jQuery

How to Create a Custom jQuery Plugin

Last updated: 10.10.2025
Views: 396
The convenience of the jQuery plugin is that you can use the same code several times for different objects. In this case, copy-paste code is not needed. In addition, you can change the behavior of the plugin with different parameters. To write your jQuery plugin, you need to expand the $.fn object In general, it looks like this: [js] $.fn.MyPlugin = function() { //plugin code } [/js]...
css

How to Hide Scrollbar Using CSS

Last updated: 21.02.2026
Views: 407
There are several ways to hide the scrollbar using CSS, depending on whether you want to completely remove scrolling or just hide the visual appearance of the scrollbar. Hide the Scrollbar but Keep Scrolling To hide the scrollbar visually while still allowing scrolling: [css] /* For modern browsers */ .block { overflow: auto; /* or scroll */ scrollbar-width: none; /* Firefox */ } ...
code

Cheat sheet for work with Git

Last updated: 26.10.2025
Views: 418
Git is an indispensable tool for managing versions of code in development. It allows you to track changes in the project, return to previous versions and work effectively in a team, preventing code conflicts. With its help, developers can conduct parallel work on different functions using branches, and then combine them. In addition, Git provides reliable storage of the history of changes, which h...