Tag Archives | HTML

PHP: how to use AJAX to upload file

We create a simple example to learn how to use AJAX to upload file. HTML Create simple form with a file input, we use accept attribute to validate image Javascript: PHP: file testuploadajaxdo.php We use folder products to store all uploaded images. Done 😀 Demo online: Demo upload ajax

Read full story Comments { 0 }
Create a Search Box using CSS/HTML

Create a Search Box using CSS/HTML

All of us who regularly encode web pages keep in mind hundreds of codes for various elements. In order to shorten the time the well is in one folder to specific elements of several styles to find us there when we need them again. Today I share with you my map “search box”. For beginners, […]

Read full story Comments { 0 }

PHP: How to parse out HTML comments

Method 1: Using preg_match_all function: Example: Result: Method 2: Example: Result: Bug: Result:

Read full story Comments { 0 }