Hi Ben,
Thanks, the error disappeared but my fields were still blank after a submitted error.
I looked again through various websites and I have found a solution I missed before. Here it is for those who will be interested:
I replaced :
by
And I didn't need the additional code in the php section.
Thanks for your time
Thanks, the error disappeared but my fields were still blank after a submitted error.
I looked again through various websites and I have found a solution I missed before. Here it is for those who will be interested:
I replaced :
Code:
<select name="delai" id="delai">
<option value=""></option>
<option value="1 semaine">1 semaine</option>
<option value="1 mois">1 mois</option>
<option value="Plus">Plus</option>
</select>
Code:
<select name="delai[]" id="delai">
<option value="" <?php if (@in_array("", $fields["delai"])) echo "selected"; ?>></option>
<option value="1 semaine" <?php if (@in_array("1 semaine", $fields["delai"])) echo "selected"; ?>>1 semaine</option>
<option value="1 mois" [quote]<?php if (@in_array("1 mois", $fields["delai"])) echo "selected"; ?>>1 mois</option>
<option value="Plus" <?php if (@in_array("Plus", $fields["delai"])) echo "selected"; ?>>Plus</option>
</select>
And I didn't need the additional code in the php section.
Thanks for your time