21.7. At the Server-side

At the server-side, you do what is required by your mobile Internet application using a server-side technology. Commonly used server-side technologies include ASP, Java Servlet, JSP, Perl, PHP, etc.

The contents of the file, processing.asp, are shown below. We will send the registration form of our example to this file whose ASP code will be responsible for doing the processing needed. For the reason of simplicity, we will just display a message saying the registration is successful and list the form data received in the WML card. In real world applications, data in registration forms are very often saved in a database like MySQL, PostgreSQL, Microsoft SQL Server, Oracle Database, etc, at the server-side.


<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">

<% Response.ContentType = "text/vnd.wap.wml" %>

  <card id="card1" title="Registration Success">
      The registration is successful.<br/><br/>

      Here is the data received at the server:<br/>
      User name: <% =Request.QueryString("username") %><br/>
      Password: <% =Request.QueryString("password") %><br/>
      Email: <% =Request.QueryString("email") %><br/>
      Name: <% =Request.QueryString("name") %><br/>
      Birthday: <% =Request.QueryString("birthday") %>

Sony Ericsson T68i

Nokia Mobile Browser 4.0

Previous Page Page 71 of 71

Contents at a Glance (Click Here for Full Table of Contents)
Print this Web Page | | Back to Top

Feedback Form (Expand)

What do you think about this web page?

WMLScript Tutorial - Table of Contents WMLScript Tutorial - Contents at a Glance Preferences - Light mode / Dark mode Preferences - Do Not Show Ads Previous Page