non aucune confusion je fais des copier coller mais j ai trouvé ou se situait mon problème ^^ en fait la page était index.html au lieu de index.php
Pour ceux que ca interesse voila ce que j'ai fait:
<div id="div_area" style="display:none;">
<p>
<select id="select_area">
<?php
$rows = file("datas/LArea.txt", FILE_SKIP_EMPTY_LINES);
foreach($rows as $value){
?>
<option value="<?php echo $value; ?>"><?php echo $value; ?></option>
<?php
}
?>
</select>
</p>
<br/>
</div>
<div id="div_subarea" style="display:none;">
<p>
<select id="select_subarea">
<?php
$rows = file("datas/LSArea.txt", FILE_SKIP_EMPTY_LINES);
foreach($rows as $value){
?>
<option value="<?php echo $value; ?>"><?php echo $value; ?></option>
<?php
}
?>
</select>
</p>
<br/>
</div>
<div id="div_countryunit" style="display:none;">
<p>
<select id="select_countryunit">
<?php
$rows = file("datas/LCountryU.txt", FILE_SKIP_EMPTY_LINES);
foreach($rows as $value){
?>
<option value="<?php echo $value; ?>"><?php echo $value; ?></option>
<?php
}
?>
</select>
</p>
<br/>
</div>
<div id="div_country" style="display:none;">
<p>
<select id="select_country">
<?php
$rows = file("datas/LCountry.txt", FILE_SKIP_EMPTY_LINES);
foreach($rows as $value){
?>
<option value="<?php echo $value; ?>"><?php echo $value; ?></option>
<?php
}
?>
</select>
</p>
<br/>
</div>
qui renvoies à ca:
[javascript]function select_sort (value) {
if (value == "area") {
document.getElementById("div_area").style.display = "";
document.getElementById("div_subarea").style.display = "none";
document.getElementById("div_country").style.display = "none";
document.getElementById("div_countryunit").style.display = "none";
}
if (value == "subarea") {
document.getElementById("div_area").style.display = "none";
document.getElementById("div_subarea").style.display = "";
document.getElementById("div_country").style.display = "none";
document.getElementById("div_countryunit").style.display = "none";
}
if (value == "country") {
document.getElementById("div_area").style.display = "none";
document.getElementById("div_subarea").style.display = "none";
document.getElementById("div_country").style.display = "";
document.getElementById("div_countryunit").style.display = "none";
}
if (value == "countryunit") {
document.getElementById("div_area").style.display = "none";
document.getElementById("div_subarea").style.display = "none";
document.getElementById("div_country").style.display = "none";
document.getElementById("div_countryunit").style.display = "";
}
if (value == "world") {
document.getElementById("div_area").style.display = "none";
document.getElementById("div_subarea").style.display = "none";
document.getElementById("div_country").style.display = "none";
document.getElementById("div_countryunit").style.display = "none";
}
}[/javascript]
merci d'avoir essayé de m'aider !
je ne sais pas comment on rend un sujet résolu ....