Re: Programming Forms in HTML
Robert2513 wrote:1.) For my form, I ask the user for his/her birthdate. I decided to use drop down boxes for the month and day. I was wondering, can I limit the selection of days to the month? Example: If the month of October is selected, the user can only choose 1 though 30 for the day instead of the full 31 days that I have programmed in the code.
You would have to use scripting (either client-side or server side) for this, as it would require dynamic forms.
Plain HTML will not do this.
Quote:2.) For the year that the person was born, I have a text box. How can I limit the value that can be entered no more than 4 digits?
Add maxlength=4 to the form field.
Quote:3.) Right now, I have the following in the code for my form: <form action="MAILTO:myemail@somewhere.com" method="post" enctype="text/plain"> With this code, upon clicking submit, Outlook Express opens with a "New Message" window. Is it possible to program it so that when submit is clicked, that it will send the information directly to my inbox without opening Outlook Express?
Not with html. You would need server side scripting to accept the data and send the email.
Quote:Also, I have one other question. When using an unordered list, I know that there are different types of bullets that can be used like circles or squares. Can gif files be used as well?
Yes, I usually do this using CSS. Here is an example CSS code:
Code:.bullet {list-style-image: url(/images/bullet.gif);}