variable

Karim
Invité n'ayant pas de compte PHPfrance

16 mai 2005, 08:09

Bonjour,

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

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

merci

ViPHP
ViPHP | 4674 Messages

16 mai 2005, 08:18

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 :) +
« Un handicap est le résultat d'une rencontre entre une déficience ou différence et une incapacité de la société à répondre à celle-ci. »

Hoa : http://hoa-project.net (sur @hoaproject).