";
}
if (isset ($_POST['tag'][$j])) {
echo "caca";
//$tag[$j] = $_POST['tag[$j]'];
//echo $tag[1]."
";
}
if (isset ($_POST['adr'])) {
$adresse = $_POST['adr'];
echo $adresse."
";
if (isset ($_POST['cp'])) {
$codepostal = $_POST['cp'];
echo $codepostal."
";
if (isset ($_POST['ville'])) {
$ville = $_POST['ville'];
echo $ville."
";
}
if(empty($adresse) OR empty($codepostal) OR empty($ville) )
{
echo 'Attention, les champs adresse, code postal et ville doivent être renseignés
';
}
}
}
if (isset ($_POST['tel_princ'])) {
$telephoneprinc = $_POST['tel_princ'];
echo $telephoneprinc."
";
}
if (isset ($_POST['fax'])) {
$fax = $_POST['fax'];
echo $fax."
";
}
if (isset ($_POST['tel_cont'])) {
$telephonecont = $_POST['tel_cont'];
echo $telephonecont."
";
}
if (isset ($_POST['mail'])) {
$mail = $_POST['mail'];
echo $mail."
";
}
mysql_connect($serveur,$loginbase,$loginpwd);
mysql_select_db($base);
$tagocs = gettag();
mysql_close();
$k=1;
/// formatage des donnees
while ( $tagocs[$k] != NULL) {
foreach ($tagocs[$k] as $key => $value) {
//echo $key." - ".$value."
";
$tagocs[$k][$key] = $value;
}
$k++;
}
?>
echo "".$retour_index."";
?>