发布并获取数组 [英] post and get arrays

查看:70
本文介绍了发布并获取数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在项目中使用的日期选择器有问题.
日期选择器在运行时生成此选项:

Hi,
I have a problem with this date picker I am using for my project.
The date-picker generates this option at run time :

<select class="birth-month" name="birth[month]" id="birth[month]"
<option value="1">Jan</option>
<option value="2">Feb</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select>



我不知道如何发布或获得出生的价值[月]

我很困惑,请帮助我.



I don''t know how to Post or get the value for birth[month]

I''m confused, please help me.

推荐答案

您需要为此在网页上添加表单标签,并且日期选择器必须位于该表单上,然后您可以决定使用方法POST或方法GET.

You need a form tag on your web page for that and the datepicker will have to be on that form, then you can decide to use method POST or method GET.

<form method="POST" ... >

// other stuff

</form>



我非常确定这不会回答您的问题,但是您需要学习如何提出更具体的问题;)可以随意编辑您的问题以显示您要解决的问题.

干杯

曼弗雷德(Manfred)



I''m very sure this doesn''t answer your question, but you need to learn how to ask more specific questions ;) Feel free to edit your question to reveal what it is exactly you''re trying to accomplish .

Cheers

Manfred


这篇关于发布并获取数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆