Recup url

mightteam Messages postés 143 Date d'inscription lundi 1 septembre 2003 Statut Membre Dernière intervention 2 juin 2008 - 8 nov. 2003 à 18:16
Tomcube Messages postés 311 Date d'inscription vendredi 4 avril 2003 Statut Membre Dernière intervention 14 septembre 2004 - 8 nov. 2003 à 22:48
salut

je cherche une fonction simple pour recupéré tout ce que l'url emmets apres le /

Msn & Mail : Technical@adverbo.be

1 réponse

Tomcube Messages postés 311 Date d'inscription vendredi 4 avril 2003 Statut Membre Dernière intervention 14 septembre 2004 1
8 nov. 2003 à 22:48
Pas besoin de fonction :
$_SERVER["PHP_SELF"];
affiche tout ce qui s'affiche après le /
>> Normalement, avec
http://www.monsite.com/test.php?op=action
ça affichera
test.php?op=action

$_SERVER["QUERY_STRING"];
permet d'afficher tous les arguments passés en URL
>> Normalement, avec
http://www.monsite.com/test.php?op=action
ça affichera
op=action
0
Rejoignez-nous