本文介绍了用JSON填充dropdownlist时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我设置了一个json文件,如下所示:

Hi,
I have a json file set as this:

{"John":"[email protected]","Mary":"[email protected]","Andrew":"[email protected]"}


显然这是一个示例列表,实际的列表要长得多.

I''m试图建立一个HTML页面的组合框,显示永世和,当选择一个名称的名称,它传递的电子邮件作为变量的PHP脚本.


obviusly this is an example list, actual one is much longer.

I''m trying to build a combobox in an HTML page that shows the names of the poeple and, when a name is selected, it pass the email as variable to a PHP script.

Any idea how to do it?

推荐答案


这篇关于用JSON填充dropdownlist时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 16:03