Hi all
I am making something for my webpage
Where the user can choose a month: I have made that with a dropdown box.
January
February
March
April
May
June
July
August
September
October
November
December
The thing is:
I also want the user to choose a date
I will make this with another dropdownbox.
But if the first month is selected, then there should be 31 days in the days
dropdownbox, if the second month is selected there should be 28 days in the
dropdownbow.
I Know a little of python programming, but not to much, I have a feeling of
that I should use a cgi, can any explain me what I have to do :? Or give me
a link to a site where I can copy the code for it
All help will be greatly appreciated.
Thanks for your time
解决方案
If I understand what you are asking then Python & CGI are a poor
solution. It would be easy to have one page ask for the month, click
submit, then have a second page ask for the exact date. Easy; but
terrible design.
You want to have one page with a dropdown of months. When you select a
month, you want to dynamicly alter a dropdown of dates without
refreshing the page.
For this task you''ll want to pull JavaScript out of your toolbox. This
is a fairly common "problem" and googling for examples/samples should
be quick-n-easy.
Thanks.
Do you know what I should google after, which key words ?
regards...
"Kane" wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...If I understand what you are asking then Python & CGI are a poor
solution. It would be easy to have one page ask for the month, click
submit, then have a second page ask for the exact date. Easy; but
terrible design.
You want to have one page with a dropdown of months. When you select a
month, you want to dynamicly alter a dropdown of dates without
refreshing the page.
For this task you''ll want to pull JavaScript out of your toolbox. This
is a fairly common "problem" and googling for examples/samples should
be quick-n-easy.
Kane wrote:If I understand what you are asking then Python & CGI are a poor
solution. It would be easy to have one page ask for the month, click
submit, then have a second page ask for the exact date. Easy; but
terrible design.
An improvement is to just have the dropdown listbox go from 1 to 31,
and if the user enters an invalid date, give them an error message and
ask them to re-enter the date.