Récupérer et afficher variable

Résolu/Fermé
t671 Messages postés 1419 Date d'inscription lundi 25 février 2008 Statut Membre Dernière intervention 26 février 2024 - 23 mars 2012 à 11:53
youkc Messages postés 46 Date d'inscription lundi 14 mars 2011 Statut Membre Dernière intervention 15 août 2012 - 23 mars 2012 à 12:04
Bonjour,

J'ai un "trou de mémoire" !
Je n'arrive plus à afficher une variable après récupération :
$txt_acc = $_GET['txt_acc'];
?>

<html>
<body>
.....................................
<h4>Texte :</h4><p> 
<?php
echo '<textarea cols="40" name="$txt_acc" id="$txt_acc" rows="8"></textarea><p>';
?>


En fait, afficher la variable $txt_acc dans le "textarea" ???

Merci.

2 réponses

Mopra-L Messages postés 146 Date d'inscription lundi 29 juin 2009 Statut Membre Dernière intervention 23 mai 2012 6
23 mars 2012 à 11:56
Bonjour,

Comme ça, non ?

echo '<textarea cols="40" name="txa_acc" id="id_txa_acc" rows="8">'.$txt_acc.'</textarea><p>';


0
t671 Messages postés 1419 Date d'inscription lundi 25 février 2008 Statut Membre Dernière intervention 26 février 2024 11
23 mars 2012 à 11:59
Oupsssssssssssssss !!!!!!!!
J'ai honte :o(

Merciiiiiiii ;o)
0
youkc Messages postés 46 Date d'inscription lundi 14 mars 2011 Statut Membre Dernière intervention 15 août 2012 3
23 mars 2012 à 12:04
<?php
$txt_acc = $_GET['f'];
?>

<html>
<body>
.....................................
<h4>Texte :</h4><p>
<?php
echo "<textarea cols=\"40\" name=\"$txt_acc\" rows=\"8\">votre text ici ...$txt_acc</textarea><p>";
?>
0