This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
Action Sci-Fi Children Figure 15.8 HTML source page for the DVD genre query form
15.3 Web-database integration technologies
Figure 15.9 The DVD genre query form as displayed in a browser
to be embedded within HTML pages. When a PHP page is served, the HTML portions are sent directly back to the browser, however any code contained within the special PHP tags are executed by the PHP parser and the results of the execution are returned to the browser. The sample code listed in Figure 15.10 carries out the steps 3 through 6 listed in the prior section by querying an Oracle database and returning the results of all DVDs within a specific genre. In PHP, two slashes indicate a comment and, as in the Perl programming language, variable names are preceded by the dollar sign. Note also that error checking, which would typically be included after each statement, has been omitted from this example. Active Server Pages Active server pages (ASP) A server-side scripting language developed my Microsoft.
Active Server Pages (ASP) is a scripting language developed by Microsoft that works within Microsoft’s Internet Information Server (IIS) Web server (msdn.microsoft.com/ asp). The latest version, ASP.NET, is incorporated into Microsoft’s .NET Framework. As with other server-side scripting languages such as JSP and PHP, an ASP page consists of HTML tags with scripting code placed inside the special HTML tags . When a request arrives for an ASP page, the HTML portions are returned to the browser directly while the ASP code is executed on the server and the results of the execution are returned to the browser. ASP code can be written in a number of different languages including Microsoft’s VBScript and JScript. The example shown in Figure 15.11 uses VBScript to carry out the Web–database integration steps 3 through 6. Fields from the requesting form are referenced using the Request.Form statement and HTML code is written back to the browser using the Response.Write statement. Comments in VBScript begin with a single quote. ColdFusion
ColdFusion A server-side scripting engine that operates on special tags that extend HTML.
ColdFusion is an extension to HTML offered by Adobe (http://www.adobe.com/ products/coldfusion/). The ColdFusion Markup Language (CFML) consists of a collection of special HTML tags (all start with The results of your query are