我很困惑如何让我的表单将数据插入到我创建的包表中。系统应该存储bag_id
为customer id
的客户的行李。
行李表中为每个客户生成的行数取决于他们存储的行李的大小。
下图是我希望如何插入数据。
但是,我无法弄清楚如何以我想要的方式插入数据。这是我尝试获取每种类型大小的数量:
<label>Bag Size</label></br>
<input type="text" name="big" id="big" class="form-control" style="width:5%;"/><label>Big</label>
<input type="text" name="medium" id="medium" class="form-control"style="width:5%;" /><label>Medium</label>
<input type="text" name="small" id="small" class="form-control"style="width:5%;" /><label>Small</label>
对于输入数据的方式的任何建议表示赞赏。