Changeset 48954 in spip-zone for _squelettes_/escal/contact.html


Ignore:
Timestamp:
Jun 20, 2011, 5:45:45 PM (10 years ago)
Author:
jcvilleneuve@…
Message:

modifications pour les chekbox et le message reçu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/escal/contact.html

    r48932 r48954  
    120120                $erreur=1;
    121121        }
    122         $message.= "Niveau : ";
    123     foreach ($_POST['Niveau'] as $niveau) {
    124         $message.= $niveau;
    125     }
    126   if (empty($niveau)) {
     122  if (empty($_POST['Niveau'] )) {
    127123    echo "<p class='alerte'><:escal:contact_alerte_checkbox:></p>";
    128124    $erreur=1;
    129   }
    130 
     125  } else {
     126  $message.= "Niveau : ";
     127  $message.= implode('-',$_POST['Niveau']);
     128    }
     129   
     130   
    131131
    132132  $message.=" \n\n Message : \n $vMessage\n";
Note: See TracChangeset for help on using the changeset viewer.