Php FORM (checkbox control)

To analyze this control we will use practically the same example as with the radio object: Implement a form that requests the loading of two integers, one in each text. Have two checkbox-type controls that allow us to select whether we want to add and / or subtract the entered values. The html form has… Continue reading Php FORM (checkbox control)

Published
Categorized as Tutorials

FORM (radio control) in php

To analyze this control we will have an example: Implement a form that requests the loading of two integers, one in each text. Have two radio-type controls that allow us to select whether we want to add or subtract the two values ​​entered: <html> <head> <title>Problema</title> </head> <body> <form action=”pagina2.php” method=”post”> Ingrese primer valor: <input… Continue reading FORM (radio control) in php

Published
Categorized as Tutorials

Repetitive commands in php (for – while – do / while)

Repetitive comands in php are similar to the C language. Structure for: for ([Initialization of the variable]; [Condition]; [Increase or decrease of the variable]) { [Instructions]; } The first example we will do is show on the page the numbers from 1 to 100: html> <head> <title> Problem </title> </head> <body> <? php for ($f… Continue reading Repetitive commands in php (for – while – do / while)

Published
Categorized as Tutorials

Conditional commands and their use if else elseif in php

When the program is intended, after reaching a certain point, to take a specific path in certain cases and a different path if the execution conditions differ, the set of instructions is used: if, else and elseif The basic structure of this type of instructions is as follows: if (Condition) { Instruction 1; Instruction 2;… Continue reading Conditional commands and their use if else elseif in php

Published
Categorized as Tutorials

What are String variables?

String variable is a variable that can store a series of characters. For example $string1 = “Hello”; $string2 = “World”; echo $string1. “”. $string2; To concatenate string we use the operator. Keep in mind that the echo command above can be made longer as follows: echo $string1; threw out ” “; echo $string2; As one… Continue reading What are String variables?

Published
Categorized as Tutorials

PHP Variable types

Variable names begin with the $ sign and are case sensitive (language keywords are not). In PHP it is not necessary to define the type before using it, they are created when using them. Variables are declared when assigned a value, for example: $ day = 24; // A variable of type integer is declared.… Continue reading PHP Variable types

Published
Categorized as Tutorials

What is php?

PHP (short for “PHP: Hypertext Preprocessor”) is a high-level interpreted language embedded in HTML pages and executed on the server. You have to understand first how the request of pages works in a browser to start programming in PHP. Communication between client and server without PHP: 1 – Type the address and file to request… Continue reading What is php?

Published
Categorized as Tutorials