Page 1 sur 1

variable

Posté : 16 mai 2005, 08:09
par Karim
Bonjour,

Voilà je voudrais ajouter devant ma variable un .gif mais impossible

$lien=$_POST['liendrapeau'];
$liendrapeau="$lien.gif";

merci

Posté : 16 mai 2005, 08:18
par Hywan
bonjour :o)
je te conseil d'aller voir :arrow: http://fr3.php.net/manual/fr/langref.php
ce manual est vraiment intéressant ;)
( http://fr3.php.net/manual/fr/index.php )

sinon pour ton probleme :
.gif apres ta variable
<?php
$lien = $_POST['liendrapeau'].'.gif';
?>
.gif avant ta variable
<?php
$lien = '.gif'.$_POST['liendrapeau'];
?>
Mais je ne vois pas l'utiliter de mettre le .gif devant ta variable "je voudrais ajouter devant ma variable un .gif "

en esperant t'avoir aider :) +