人人人妻人人人妻人人人,99精品国产综合久久久久五月天 ,欧美白人最猛性XXXXX,日韩AV无码免费播放

News新聞

業(yè)界新聞動態(tài)、技術(shù)前沿
Who are we?

您的位置:首頁      樂道系統(tǒng)FAQ      form表單傳遞數(shù)組數(shù)據(jù)、php腳本接收的實例

form表單傳遞數(shù)組數(shù)據(jù)、php腳本接收的實例

標(biāo)簽: 發(fā)布日期:2017-02-09 00:00:00 232

通過數(shù)組傳遞表單數(shù)據(jù),可以保存數(shù)據(jù)之間的業(yè)務(wù)屬性關(guān)系,比如有很多Student,每隔Student都有姓名、年齡、性別、愛好等表單信息。提交表單后還需要針對每個student進(jìn)行處理或者保存。這樣肯定需要為每個student的這些屬性表單建立起關(guān)聯(lián)關(guān)系,一種方式是根據(jù)屬性表單的name上加特殊標(biāo)記進(jìn)行識別,但是數(shù)組傳遞表單就能使表單數(shù)據(jù)更結(jié)構(gòu)化。

例子如下:

<input type="hidden" name="msginfo[name][]" value="張三"/>
<input type="hidden" name="msginfo[phonenum][]" value="111111111"/>
<input type="hidden" name="msginfo[name][]" value="李四"/>
<input type="hidden" name="msginfo[phonenum][]" value="222222222"/>