Click here to Skip to main content
16,005,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 24-Nov-10 4:33am
v2
Comments
Manfred Rudolf Bihy 24-Nov-10 10:39am    
Added code tag. Small typos.

1 solution

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>


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
 
Share this answer
 
v3
Comments
fresh2g6 24-Nov-10 12:44pm    
hello ..thanks for the reply ..i have done that ..already ..

but i cant get the value of the month the user have selected ..
i tried $_POST['birth[month]'] but did not work out..
Manfred Rudolf Bihy 24-Nov-10 18:22pm    
Would you consider changing the name of the field from birth[name] to birthName and retry your code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900