Let's check out our values just submitted:
FYI: Note that the above form submits back to this same page. If you haven't yet submit the form then there won't be any values in the text below since they are retrieved from the form. In this case, the values reflected are simply the defaults and are the same results you would get if you submitted the form without checking anything.
This month's article marks the end of our discussion of ASP Form Handling. Hopefully you have fully understood everything we have done thus far (and if you are new to this series, welcome aboard, check out the first article). In this article, we are going to cover a number of miscellaneous topics related to all the techniques discussed in previous articles. Some of these topics come straight from questions I received via email (thanks readers) and include: handling radio buttons and check boxes, emailing attachments with CDONTS, sending HTML in an email message, and some ways of using the data stored in the registration database we created last month. Let's start on the next page by revisiting Form Handling techniques.
Validating Email addresses is not limitted to finding "@" and "." signs in the address! There are higher concepts, but few are aware of them. This article shows you a simple way to check if the Email address provided by a user is "real" to a higher extent than current famous validation codes do.
Often times checkboxes are used for selecting a group of items for a batch delete or some other mass action. For example, in web mail you can check all the messages you want to delete in one click of the delete button. The following function is handy for this task because it takes your checkbox fieldname and efficiently returns a string of comma separated values of your checked checkboxes. This string of values could then be appended to your SQL statement for a quick, one-statement delete
Developing HTML forms for entering or editing data on line is tedious and boring work. It is even more painful if you need a data-entry solution that supports both Netscape and Internet Explorer (IE). Thus most on-line forms have no JavaScript validation and barely any server validation.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.