Web表单 - 当人输入ID时给出结果

时间:2018-01-24 14:28:02

标签: html json for-loop webforms

我在excell中得到了表格,我转换为json ..现在如何制作网络表单,那个人写出他们的ID输入和提交它只给他他的结果(excel有很多人所以通过ID,它应该只返回来自该文档的特定人员数据)..如何使用for循环或?在索引我推杆



<!DOCTYPE html>
<html>
<body>

<form action=""> //*does in here goes json document or I attach it in head?*
  OIB: <input type="text" name="username"><br>
  <input type="submit" value="Ulaz">
</form>

</body>
</html>
&#13;
&#13;
&#13;

例如JSON:

[
    {
        "FIELD1": "A",
        "FIELD2": "B",
        "FIELD3": "C"
    },
    {
        "FIELD1": "Datum",
        "FIELD2": "Firma ",
        "FIELD3": "Kom"
    },
    {
        "FIELD1": "42740",
        "FIELD2": "NITEH d.o.o.",
        "FIELD3": "11"
    },
    {
        "FIELD1": "42765",
        "FIELD2": "DT Mikša d.o.o.",
        "FIELD3": "1"
    },
    {
        "FIELD1": "42780",
        "FIELD2": "AUTOTRANSPORT d.d.",
        "FIELD3": "11"
    },
    {
        "FIELD1": "43041",
        "FIELD2": "NITEH d.o.o.",
        "FIELD3": "21"
    }
]

0 个答案:

没有答案