php forms

The PHP superglobals $_GET and $_POST are used to collect form-data. PHP - A Simple HTML Form The exampl...

php form required

This chapter shows how to make input fields required and create error messages if needed. PHP - Required...

php filter

Validating data = Determine if the data is in proper form. Sanitizing data = Remove any illegal characte...

php filter advanced

Validate an Integer Within a Range The following example uses the filter_var() function to check if...

php file

File handling is an important part of any web application. You often need to open and process a file...

php file open

In this chapter we will teach you how to open, read, and close a file on the server. PHP Open File...

php exercises

You can test your PHP skills with W3Schools' Exercises. Exercises We have gathered a variety of PHP...

php exam

   W3Schools offers an Online Certification Program. The perfect solution for busy profe...

php echo print

With PHP, there are two basic ways to get output: echo and print. In this tutorial we use echo or...

php datatypes

PHP Data Types Variables can store data of different types, and different data types can do different...

php cookies

What is a Cookie? A cookie is often used to identify a user. A cookie is a small file that the server...

php compiler

PHP Compiler (Editor) With our online PHP compiler, you can edit PHP code, and view the result in your...

ref keyword continue

❮ Java Keywords Example Skip the iteration if the variable i is 4, but continue with the next i...

ref keyword catch

❮ Java Keywords Example If an error occur, use try...catch to catch the error and execute some...

ref keyword case

❮ Java Keywords Example Calculate the weekday name: int day = 4; switch (day) {   case 1:   ...

ref keyword byte

❮ Java Keywords Example byte myNum = 100; System.out.println(myNum); Try it Yourself » D...

ref keyword boolean

❮ Java Keywords Example A boolean data type with true or false values: boolean isJavaFun = true...

java wrapper classes

Java Wrapper Classes Wrapper classes provide a way to use primitive data types (int, boolean, etc...

java variables

Java Variables Variables are containers for storing data values. In Java, there are different types...

java type casting

Java Type Casting Type casting is when you assign a value of one primitive data type to another type...