Académique Documents
Professionnel Documents
Culture Documents
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
Client
Client
Serveur
Client
Client
Par convention
Protocole http
Port 80
Connexion TCP
sur le port 80 du
Nom de domaine pageperso.lif.univ-mrs.fr serveur d'IP 139.124.22.27
Adresse IP 139.124.22.27
Client Serveur
2. Contenu de toto.html
!
!
!
Je veux toto.html
GET toto.html
toto.html
Client
HTTP/1.1 200 OK <html>...</html>
...
<html>...</html>
Serveur HTTP Système de fichiers
/var/www
!
!
!
Serveur HTTP
Génération de la page
Client
Fichiers BD
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
Récupérer les données
!
method="post" action="index.php" Requête
value="0"
value="1" name="courses[]" $_POST := array('firstname'=>'Bob',
value="2" 'lastname'=>'Bidule',
'courses'=>array('0','2'))
<?php
ok = save($_POST['firstname'], ...)
if (ok) echo 'Vous êtes inscrit.';
?>
!
!
!
!
method="post" action="index.php"
name="firstname"
name="lastname"
value="0"
value="1" name="courses[]"
value="2"
!
!
!
!
!
!
!
!
!