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 -
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

  1. Mopra-L Messages postés 151 Date d'inscription   Statut Membre Dernière intervention   6
     
    Bonjour,

    Comme ça, non ?

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


    0
    1. t671 Messages postés 1475 Date d'inscription   Statut Membre Dernière intervention   11
       
      Oupsssssssssssssss !!!!!!!!
      J'ai honte :o(

      Merciiiiiiii ;o)
      0
  2. youkc Messages postés 60 Statut Membre 3
     
    <?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