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)
Author: admin
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?
Punjab Text Book Board introduces downloadable textbooks
Punjab Text Book board has made available PDF versions of their textbooks online, you can download these bookes from Punjab Governemnt Website pctb.punjab.gov.pk You can also download these books from the following links Download E-Books 2020 Note: All rights of these books are reserved. No part of these textbooks may be reproduced, distributed, or transmitted in any form… Continue reading Punjab Text Book Board introduces downloadable textbooks
Is it worth paying extra for SSDs for hosting a website?
With websites, the only speed-related thing that really matters is how long it takes to load a (front end) page. If that loading time is longer than a couple of seconds, most visitors will give up and not even view the page, so it might as well not exist. If they’re on a moving mobile… Continue reading Is it worth paying extra for SSDs for hosting a website?