Bonjour,
Tout est nickel je recupere
le nom de ma table mais aussi
je veux recuperer
dans le corps de
if(isset($_POST['Valider']))
la valeur textArea de mon edit "comments"
comment je fais
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 <html> <form method="post" action="msa.php"> <SELECT NAME="tables" MULTIPLE SIZE="8"> <?php $conn = pg_pconnect("host=localhost port=5432 dbname=dbuser=postgres password=postgres"); if (!$conn) { echo "Une erreur s'est produite.\n"; exit; } $resultat = pg_query($conn, "select distinct(relname) from pg_attribute, pg_class, pg_namespace where attnum>0 and attrelid=pg_class.oid and relnamespace=pg_namespace.oid and nspname ='msa'"); $tableau = array(); while($ligne = pg_fetch_assoc ($resultat)) { $tableau[] = $ligne; } ?> tables : <BR> <?php foreach ($tableau as $tab1) { echo "<OPTION VALUE=\"$tab1[relname]\"> $tab1[relname]\n"; } ?> </SELECT> <TEXTAREA NAME="comments" COLS=40 ROWS=6></TEXTAREA> <INPUT TYPE="submit" NAME="Valider" VALUE="OK"><BR> </FORM> <?php if(isset($_POST['Valider'])) { $champ=$_POST['tables']; echo "$champ"; // ici j'aimerez afficher la valeur de mon textarea } ?> </html>
Partager