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.
(processing.asp)
<?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" %>
<wml> <card
id="card1" title="Registration
Success"> <p> 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")
%> </p> </card> </wml>



 Sony
Ericsson T68i
|

 Nokia
Mobile Browser 4.0
|
Previous Page
|
Page 71 of 71 |
|
 |
Feedback Form (ExpandCollapse)
|
|