La variable superglobale $_GET est souvent utilisée pour récupérer les paramètres passés dans une URL.
Les paramètres sont passés à la page en utilisant la méthode GET du protocole HTTP.
Les données récupérées via cette méthode sont généralement utilisées pour fournir des informations non sensibles à une page web,
par exemple pour récupérer l'ordre de tri, les filtres ou les paramètres de pagination d'un tableau.
Exemple d'utilisation :
Avertissement sur la sécurité :
Les données passées dans les paramètres GET peuvent être vues et modifiées par l'utilisateur, il est donc important de ne pas inclure d'informations sensibles dans ces paramètres.
En savoir plus sur les injections SQL ou les
attaques XSS.
N'hésitez pas à regarder le code/les commentaires de cette page afin d'en comprendre le fonctionnement.
| Nom | Prénom | Age | Téléphone | Pays | |
|---|---|---|---|---|---|
| Durand | Amélie | 36 | amélie.durand@example.com | 0033 435682 | France |
| Petit | Amélie | 33 | amélie.petit@example.com | 0032 371578 | Belgique |
| Robert | Amélie | 22 | amélie.robert@example.com | 0032 535754 | Belgique |
| Simon | Amélie | 35 | amélie.simon@example.com | 0033 468641 | France |
| Dubois | Camille | 18 | camille.dubois@example.com | 00352 870502 | Luxembourg |
| Durand | Camille | 34 | camille.durand@example.com | 0032 965921 | Belgique |
| Petit | Camille | 42 | camille.petit@example.com | 0032 816553 | Belgique |
| Simon | Camille | 43 | camille.simon@example.com | 0032 947604 | Belgique |
| Thomas | Camille | 37 | camille.thomas@example.com | 00352 714552 | Luxembourg |
| Dubois | Chloé | 28 | chloé.dubois@example.com | 00352 883069 | Luxembourg |
| Martin | Chloé | 19 | chloé.martin@example.com | 0033 631931 | France |
| Moreau | Chloé | 34 | chloé.moreau@example.com | 0033 450312 | France |
| Petit | Chloé | 31 | chloé.petit@example.com | 0033 562542 | France |
| Richard | Chloé | 24 | chloé.richard@example.com | 00352 088244 | Luxembourg |
| Richard | Chloé | 19 | chloé.richard@example.com | 00352 792958 | Luxembourg |
| Simon | Chloé | 34 | chloé.simon@example.com | 00352 400601 | Luxembourg |
| Thomas | Chloé | 35 | chloé.thomas@example.com | 0033 138734 | France |
| Martin | Emilie | 35 | emilie.martin@example.com | 0033 176306 | France |
| Petit | Emilie | 28 | emilie.petit@example.com | 0033 041568 | France |
| Petit | Emilie | 23 | emilie.petit@example.com | 0033 614987 | France |
| Richard | Emilie | 38 | emilie.richard@example.com | 0032 067669 | Belgique |
| Robert | Emilie | 24 | emilie.robert@example.com | 00352 297712 | Luxembourg |
| Durand | Julie | 29 | julie.durand@example.com | 00352 466209 | Luxembourg |
| Petit | Julie | 29 | julie.petit@example.com | 0032 164328 | Belgique |
| Robert | Julie | 18 | julie.robert@example.com | 00352 176655 | Luxembourg |
| Thomas | Julie | 37 | julie.thomas@example.com | 0032 255734 | Belgique |
| Dubois | Louise | 27 | louise.dubois@example.com | 00352 166770 | Luxembourg |
| Richard | Louise | 21 | louise.richard@example.com | 00352 306446 | Luxembourg |
| Robert | Louise | 42 | louise.robert@example.com | 00352 891709 | Luxembourg |
| Thomas | Louise | 24 | louise.thomas@example.com | 0032 670179 | Belgique |
| Laurent | Léa | 41 | léa.laurent@example.com | 00352 832161 | Luxembourg |
| Petit | Léa | 22 | léa.petit@example.com | 0032 596539 | Belgique |
| Robert | Léa | 45 | léa.robert@example.com | 0033 128760 | France |
| Laurent | Mathilde | 44 | mathilde.laurent@example.com | 00352 621935 | Luxembourg |
| Martin | Mathilde | 41 | mathilde.martin@example.com | 0033 747266 | France |
| Moreau | Mathilde | 32 | mathilde.moreau@example.com | 00352 617461 | Luxembourg |
| Robert | Mathilde | 27 | mathilde.robert@example.com | 0032 903820 | Belgique |
| Simon | Mathilde | 20 | mathilde.simon@example.com | 00352 490080 | Luxembourg |
| Simon | Mathilde | 23 | mathilde.simon@example.com | 00352 488941 | Luxembourg |
| Thomas | Mathilde | 44 | mathilde.thomas@example.com | 00352 003335 | Luxembourg |
| Laurent | Pauline | 19 | pauline.laurent@example.com | 0032 589769 | Belgique |
| Petit | Pauline | 32 | pauline.petit@example.com | 00352 215141 | Luxembourg |
| Richard | Pauline | 35 | pauline.richard@example.com | 00352 486950 | Luxembourg |
| Robert | Pauline | 19 | pauline.robert@example.com | 0032 892285 | Belgique |
| Simon | Pauline | 25 | pauline.simon@example.com | 0032 709072 | Belgique |
| Thomas | Pauline | 24 | pauline.thomas@example.com | 0032 938045 | Belgique |
| Thomas | Pauline | 30 | pauline.thomas@example.com | 00352 944377 | Luxembourg |
| Durand | Victoire | 20 | victoire.durand@example.com | 00352 327211 | Luxembourg |
| Robert | Victoire | 42 | victoire.robert@example.com | 0033 559979 | France |
| Simon | Victoire | 22 | victoire.simon@example.com | 0033 793965 | France |