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)
Category: 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
Sending data from a HTML from via php (text and submit controls)
The process handling FORMS generally requires two pages, one that implements the form and the other that processes the data loaded in the form. The minimum code of a form is as follows: for the entry of a person’s name, a text object and a button for sending the data to the server: <html> <head>… Continue reading Sending data from a HTML from via php (text and submit controls)
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)
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
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?
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
A tiny php dcript beyond “Hello World”
A simple problem that can be presented to us and that cannot be solved using only HTML is that a page is available only the first 10 days of the month. We will display a sign saying that the site is available if the date is less than or equal to 10, otherwise we will… Continue reading A tiny php dcript beyond “Hello World”
Program in php to say “Hello World”
In this course we assume that you know the main HTML marks and some programming language, at least a little bit. To add a PHP program within an HTML page we must, on the one hand, when creating the file, define it with a php extension (unlike static pages that have an htm or html… Continue reading Program in php to say “Hello World”
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?