Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

interval entre "?pages=" et le "&="

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
tdan
Smarty Rookie


Joined: 27 Mar 2015
Posts: 8

PostPosted: Fri Mar 27, 2015 9:39 am    Post subject: interval entre "?pages=" et le "&=" Reply with quote

Bonjour.

Je reformule ma question.

J'ai fait un truc du genre pour isoler ce qui se trouve entre "?pages=à_isoler&autrechose=letruc"

[code]$file = $_SERVER['REQUEST_URI'];
$break = Explode('page=', $file);
$pfile = $break[count($break) - 1];[/code]

Mais, si j'ai un url comme ceci:
http..../index.php?pages=paysaqes&autrechose=letruc

Je veux placer dans une variable en php seulement paysages.
Avec explode, j’obtiens qu'une partie du résultat avec le reste
de l'url.

PS, la balise code ne marche pas.
Back to top
View user's profile Send private message
tdan
Smarty Rookie


Joined: 27 Mar 2015
Posts: 8

PostPosted: Thu Apr 09, 2015 8:25 am    Post subject: Reply with quote

$_GET['page'] la solution.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP