[CGI & HTML] Afficher des variables
Fermé
oXyde68
lami20j
- Messages postés
- 746
- Date d'inscription
- dimanche 20 novembre 2005
- Statut
- Membre
- Dernière intervention
- 17 mars 2021
lami20j
- Messages postés
- 21331
- Date d'inscription
- jeudi 4 novembre 2004
- Statut
- Modérateur, Contributeur sécurité
- Dernière intervention
- 30 octobre 2019
A voir également:
- [CGI & HTML] Afficher des variables
- Html afficher une variable ✓ - Forum - Javascript
- Afficher une variable javascript dans une page html ✓ - Forum - Javascript
- Afficher une variable php en html ✓ - Forum - PHP
- Afficher une variable javascript en html - Forum - Javascript
- Afficher une variable en html - Forum - Javascript
1 réponse
lami20j
15 févr. 2006 à 21:31
- Messages postés
- 21331
- Date d'inscription
- jeudi 4 novembre 2004
- Statut
- Modérateur, Contributeur sécurité
- Dernière intervention
- 30 octobre 2019
15 févr. 2006 à 21:31
Voilà un script en perl. Si ton hebergeur le permet tu peux l'essayé
#! /usr/bin/perl -wT use strict; print "Content-Type: text/html\n\n"; print <<FIN_HTML; <html> <head> <title>Variables CGI</title> <head> <body> <h1>Variables d'environement</h1> <table border=1> <tr> <th>NOM VARIABLE</th> <th>VALEUR</th> </tr> FIN_HTML foreach my $var_cgi ( sort keys %ENV ) { print "<tr> <td><b>$var_cgi</b></td> <td>$ENV{$var_cgi} </td> </tr>\n"; } print "</table></body></html>\n";