J'ai une page web qui contient un formulaire un certain nombre de champ

page principale
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
 
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
 
function popup(page) {
	// ouvre une fenetre sans barre d'etat, ni de barre de scroll
	window.open(page,'Ajout ville','width=300,height=200,toolbar=no,scrollbars=no');
}
</SCRIPT>
 
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size:"13px"; color="#FFFF00"" bgcolor="#336600" link="#FFFF00" vlink="#FFFF00">
 
<?php
require_once("db_fns.php");
 
                $sql = "Select CdeVille, CPVille, Ville from tbl_ville";
                $req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
?>
<table width="30%" border="2" bgcolor="#006600" bordercolor="#FFFF00" style="font:Arial, Helvetica, sans-serif; color:#FFFF00">
	<tr>
	<td align="center"><b>Ajout d'un client</b></td>
	</tr>
</table>
<?
echo "<br>";
?>
<table width="100%" border="2" bgcolor="#006600" bordercolor="#FFFF00" style="font:Arial, Helvetica, sans-serif; color:#FFFF00; font-size:14px">
	<form name="addcli" method="post" action="add_client.php">
	<tr style="font-size:14px ; color:#FFFF00" align="center">
	<td width="28%" align="center" bgcolor="#339900"><b>Nom Client</b></td>
	<td colspan="2"><input name='nomcli' type='text' id='nomcli' size='50'/></td>
	</tr>
	<tr style="font-size:14px ; color:#FFFF00" align="center">
	<td width="28%" align="center" bgcolor="#339900"><b>Prenom Client</b></td>
	<td colspan="2"><input name='precli' type='text' id='precli' size='50'/></td>
	</tr>
	<tr style="font-size:14px ; color:#FFFF00"align="center">
	<td width="28%" align="center" bgcolor="#339900"><b>Adresse Client</b></td>
	<td colspan="2"><input name='adrcli' type='text' id='adrcli' size='50'/></td>
	</tr>
	<tr style="font-size:14px ; color:#FFFF00"align="center">
	<td width="28%" align="center" bgcolor="#339900"><b>Téléphone</b></td>
	<td colspan="2"><input name='telcli' type='text' id='telcli' value="00/00/00/00/00" size='50'/></td>
	</tr>
	<tr style="font-size:14px ; color:#FFFF00" align="center">
	<td width="28%" align="center" bgcolor="#339900"><b>Ville Client</b></td>
	<td width="35%">
	  <select name="commune" size="1">
	  <option value=0>--commune--</option>
<?php
                while ( $row = mysql_fetch_array( $req)) {
                                        $cdeville = $row["CdeVille"];
                                        $cp = $row["CPVille"];
                                                $ville = $row["Ville"];
?>
		<option calue='<?php echo $cdeville; ?>'><?php echo "$cp $ville"; ?></option>
<?php
}
?>
	    </select>	  </td>
	<td width="37%"><a href='javascript:popup("ville.php")'>Ajouter ville</a></td>
	</tr>
	<tr style="font-size:14px ; color:#FFFF00" align="center" bgcolor="#336600" bordercolorlight="#336600">
	  <td colspan="3" align="center">
	    <input type="submit" name="Submit" value="Ajouter" style="background:#FFFF00; color:#006600; border:#006600"><>	
	    <input type="reset" name="Submit" value="Retablir" style="background:#FFFF00; color:#006600; border:#006600">	  </td>
	  </tr>
	</form>
</table>
</body>
</html>
ci dessous le code de la popup
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
 
<html>
<head>
<title>Mise à jour</title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size:"13px"; color="#FFFF00"" bgcolor="#336600">
<table width="200" border="2" bgcolor="#006600" bordercolor="#FFFF00" style="font:Arial, Helvetica, sans-serif; color:#FFFF00" align="center">
<form name="ville" method="post" action="add_ville.php" onClick="window.close()">
<tr>
	<td width="100">Code Postal </td>
	<td width="100"><input type="text" name="cp" size="10"></td>
</tr>
<tr>
	<td width="61">Ville</td>
	<td width="68"><input type="text" name="ville" size="10"></td>
</tr>
<tr>
	<td>Pays</td>
	<td><input type="text" name="pays" value="FRANCE" size="10"></td>
</tr>	
<tr>
    <td colspan="2" align="center"><input type="submit" name="Submit" value="Ajouter" style="background:#FFFF00; color:#006600; border:#006600"></td>
</tr>
</form>
</table>
</body>
</html>
lorsque que j'ajoute une ville, je constate les phénoménes suivants :
1) la popup ne se ferme pas
2) la page contenant le formulaire ne se met pas à jour

etant novice dans ce domaine, quelqu'un à t il une solution