Php 当我从下拉列表中选择硬编码的值时,它不会选择值,也不会将其发送到数据库中

Php 当我从下拉列表中选择硬编码的值时,它不会选择值,也不会将其发送到数据库中,php,html,css,angular,ionic4,Php,Html,Css,Angular,Ionic4,My page.html <ion-item> <ion-label color="medium">Leave</ion-label> <ion-select [(ngModel)]="leavetype" name="leavetype"> <ion-select-option *ngFor="let val of result" value=""> {{val. leavetype}} </ion-select

My page.html

<ion-item>
  <ion-label color="medium">Leave</ion-label>
  <ion-select [(ngModel)]="leavetype" name="leavetype">
    <ion-select-option *ngFor="let val of result" value=""> {{val. leavetype}} </ion-select-option>
  </ion-select>
</ion-item>
当我在关闭下拉列表后选择“休闲”时,它会显示“医疗”而不是“休闲”,并且不会将值保存在数据库中。

将此行更改为

<ion-select-option *ngFor="let val of result" value=""> {{val. leavetype}} </ion-select-option>


但它不与ngmodel绑定
<ion-select-option *ngFor="let val of result" value=""> {{val. leavetype}} </ion-select-option>
<ion-select-option *ngFor="let val of result" [value]="val.leavetype"> {{val. leavetype}} </ion-select-option>
</ion-item>