Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

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

 
Post new topic   Reply to topic    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:   
Post new topic   Reply to topic    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