![Smarty Forum Index Smarty Forum Index](templates/smarty/images/phpbb2_logo.gif) |
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tdan Smarty Rookie
![](images/avatars/13725311895544b0fc1fc9b.jpg)
Joined: 27 Mar 2015 Posts: 8
|
Posted: Fri Mar 27, 2015 9:39 am Post subject: interval entre "?pages=" et le "&=" |
|
|
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 |
|
tdan Smarty Rookie
![](images/avatars/13725311895544b0fc1fc9b.jpg)
Joined: 27 Mar 2015 Posts: 8
|
Posted: Thu Apr 09, 2015 8:25 am Post subject: |
|
|
$_GET['page'] la solution. |
|
Back to top |
|
|
|
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
|