python html 补全标签,html标签和python

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值