Récupérer et afficher variable
Résolu
t671
Messages postés
1475
Date d'inscription
Statut
Membre
Dernière intervention
-
youkc Messages postés 60 Statut Membre -
youkc Messages postés 60 Statut Membre -
Bonjour,
J'ai un "trou de mémoire" !
Je n'arrive plus à afficher une variable après récupération :
En fait, afficher la variable $txt_acc dans le "textarea" ???
Merci.
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
-
Bonjour,
Comme ça, non ?
echo '<textarea cols="40" name="txa_acc" id="id_txa_acc" rows="8">'.$txt_acc.'</textarea><p>';
-
<?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>";
?>