• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 33. Active Server Pages and VBSc... > Putting It All Together: A Simple AS...

Putting It All Together: A Simple ASP Application

In the first part of this chapter, you read about VBScript In the first and how you could use it to create client-side scripts. Then, you learned quite a bit about Active Server Page applications and some of the built-in objects and components that support ASP development. Now it is time to join these two bodies of knowledge by looking at a short ASP application developed in VBScript. Suppose your company is running a Web-based marketing campaign. You have sent mailers to your clients assigning a unique promotional identifier to each one and inviting them to check out the promotion on your site. At your site, you will verify their contact information, ask them a few marketing questions, and then thank them for their participation. A back-end data source named "promotion" holds the current contact information and promotion IDs for each of your clients.

To begin the application, you need prompt your client for his or her promotion ID. A simple HTML form will suffice for this. What's unique in this case is that the ACTION attribute of the <FORM> tag will point to the ASP file promo1.asp and not at a CGI program. Listing 33.7 shows one possible way to code the form.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint