21.5. WML applications with CGI and databases

21.5.1. Using Perl script to generate WML pages

From the structure of WAP and WML (see Fig. 21.1), we know that the communications between the WAP gateway and the WAP sites are using the standard HTTP. There is no reason why we cannot use CGI techniques on these WAP sites to deliver a WML page to the WAP gateway. In fact, in this section, we are going to do just that.

We will show you how to construct Perl and PHP scripts to deliver WML pages to a mobile device. Also, by opening up the CGI techniques to WML pages, a new chapter of applications can be created. All the skills that you have learned from this book are applicable to mobile devices. We will also show you how to connect to a MySQL database ...

Get Practical Web Technologies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.