Ir al contenido principal

Entradas

Using $_SESSION of PHP to do a simple Phonebook $_SESSION of PHP is a assosiative array that contain session variables available for the current script. We could use this $_SESSION array to store contacts from our phonebook. ·  Our phone book will have the next condition: If the name you entered already exists in the phonebook and no phone number is indicated, the entry corresponding to that name will be removed from the phonebook. First, we need create the inputs where the user will send her name and number phone: The next step is to obtain the data entered by the user and for this we will use the $_SESSION array. First we need create two variables to keep the name and phone recieved: Then we must initialize this array with the function sesion_start(). If you don’t write this line can’t use $_SESSION. How $_SESSION is an asosiative array we could use the key to store the phone and the value to store the name. Before we will change the number to s
Entradas recientes

Introduction to server side

1. Diference between Static web pages and Dinamic web pages: 1.1. Static web pages: These pages are stored in their final form, just as they were created, and their content does not vary. Only a programmer can change his content. Steps given by a static web: 1) Your computer asks a web server for a page with the extension .htm, .html or .xhtml. 2) The server searches for that page in a page store 3) If the server finds that page, it retrieves it 4) And finally it is sent to the browser so that it can display its content 1.1. Dinamic web pages: Their content changes based on various variables, such as the browser you are using, the user with whom you have identified, or the actions that have performed previously. There are two types in dinamic web pages: A) Those that include code that runs the browser. This pages use Html and Javascript. This code can incorporate multiple functionalities that can range from showing animations to totally changing the appeara