|
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 |
double Smarty n00b
Joined: 11 May 2007 Posts: 1
|
Posted: Fri May 11, 2007 5:35 pm Post subject: passage de paramètre de template à php |
|
|
Bonjour,
je cherche à passer une valeur depuis un fichier tpl:
Code: |
<a href='remarques.php?num={$Tab[idx].id}'>{$Tab[idx].prenom}</a>
|
Le lien me redirige bien vers remarques.php, et le navigateur affiche dans sa barre:
Quote: |
../remarques.php?num=5
|
mais quand je fais : <?php $num ?> dans remarques.php, rien ne s'affiche, je suis bloqué, pouvez-vous m'aider?
Merci |
|
Back to top |
|
Nasga Smarty n00b
Joined: 30 May 2007 Posts: 2
|
Posted: Thu May 31, 2007 10:56 am Post subject: |
|
|
C'est une variable passée en get, il faut donc la récuperer en get :
Code: | <?php
echo $_GET['num'];
?> |
_________________ "Vi veri veniversum vivus vici."
Faust. |
|
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
|