Variable PHP
Résolu
benjamin46
-
benjamin46 -
benjamin46 -
A voir également:
- Variable PHP
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Vba range avec variable ✓ - Forum VB / VBA
- Range avec une Variable ✓ - Forum VB / VBA
- Variable d'environnement temp ✓ - Forum Microsoft Office
2 réponses
Et la concaténation alors ?
Pour ton fichier test2.php, comme ça sa serait mieux:
Bilou.
Pour ton fichier test2.php, comme ça sa serait mieux:
echo "<img src='http://www.site.com/image?user=".$_POST['nom']."&action=&img_format=gif'/>";
Bilou.
benjamin46
Magnifique, merci beaucoup !
Salut(.
Tu n'a pas un message d'erreur?
essay comme ça :
<?php
if(isset($_POST['nom']))
{
$nom = htmlspecialchars($_POST['nom']);
echo "<img src='http://www.site.com/image?user=$nom&action=&img_format=gif'/>";
}
else
{
echo "erreur...";
}
?>
et met au moin un htmlspecialchars(); pour récuperer tes variables histoire de..., ça coute rien!!
Tu n'a pas un message d'erreur?
essay comme ça :
<?php
if(isset($_POST['nom']))
{
$nom = htmlspecialchars($_POST['nom']);
echo "<img src='http://www.site.com/image?user=$nom&action=&img_format=gif'/>";
}
else
{
echo "erreur...";
}
?>
et met au moin un htmlspecialchars(); pour récuperer tes variables histoire de..., ça coute rien!!