0
我需要将我的下拉列表列表中选定的值归因于我可以在我的SQL查询中使用的变量。属性选择到一个变量显示输入字段使用SQL
我知道,我必须使用Ajax或jQuery的,但我不能,因为我不学习它尚未
图片1: 图2:
<!-- Début PHP Catégories -->
<?php
\t $resCat=mysqli_query($conne,$reqCat);
?>
\t \t \t \t \t \t \t \t \t
<div class="form-group">
<label class="col-md-3 control-label">Catégorie</label>
<div class="col-md-9"> \t \t \t \t \t \t
\t <select class="form-control select" name="categorie" id="categorie" ">
\t <?php
\t while ($rowCat= mysqli_fetch_row($resCat)) {
\t ?>
\t <option value="<?php echo $rowCat[1] ?>"><?php echo $rowCat[0] ?></option>
<?php
}
$categorie = $_POST['categorie'];
?>
</select>
</div>
</div>
<!-- Fin PHP Catégories -->
谢谢
我不能因为我有一种形式的整体形式,你可以在这里看到http:///i.imgur.com/EO4In3S.png –