Address : C/204 Patel Nagar,
Kandivali (w), Mumbai 400067, India.
Email : firstname.lastname@example.org
Tel : 863 83 99
: “Muna Mobile”
Topic Description : Movie Tickets Booking System on
Mobile Phone written in ASP and WAP. Tested on Nokia’s
and Phone’s simulator.
: (Advanced) Assumed you are aware of ASP and WML
Here we will see
a nice, simple example of how a user can book a movie tickets through his
mobile phone. We are going to use ASP and Access database to retrieve and
store information. No Registration is required.
Take a look on Database
structure first. (Tickets.mdb)
We have 4 Tables,
[Movie : Stores Movie names and stars in movie, Unique movieId(Auto
[Theater : Stores Theater names each one uniquely identified by
theaterid (Auto Number Field).]
[Shows : Theaters running particular movies and its timings, seats
availability and per ticket price, MovieId and TheaterId as Foreign Keys.
Each show identified as Showid (Auto Number Field)].
[Booking : Unique booking id generated for each booking done. you
also store name, phone number and number of seats booked of the
Here is the Relational
Structure and Sample Data Used for Demo
Before writing code
For demo you can put all
this .wml and .asp files in to one directory and map it as a virtual
directory is IIS. Since it uses DSN-less connection put database also in
the same directory.
When you call or redirect to .asp file your asp file should generate WML
code instead of HTML, because that is what your w@p enable device or simulator
would understand. This can be done by first throwing W@P’s mime-types
from an ASP program. The following lines should be included in your
ASP program as it is.
<%Response.write(“<?xml version=””1.0″”?><!DOCTYPE wml PUBLIC
“”-//WAPFORUM//DTD WML 1.1//EN””
After this you can throw any
WML content. First line is important as browser sould know what type of
data is going to come.
Passing parameters to ASP program
At time you accept input from the user which needs to be pass to an ASP
program. Here are WML statements to pass parameters in a name value
pair to your ASP program.Using your <go> tag you call your next
WML DECK or an ASP program. Right !.
Here you can also specify method ( ie. GET/POST although POST is not
supported by few devices we will use GET Method ) and the parameters
you want to pass by using <postfield> tag. <postfield> tag
requires name and value attributes.
That’s enough to proceed
Here is the entire code
This is the initial screen which stays for few seconds and then redirects you
Welcome to Muna-Mobile<br/><br/><img src=”movie.bmp”
alt=”logo” /><br/>Movie Ticket<br/>Booking System !
This page give list of all Movies available in the system, and user to
select one. It lists movies as choices, <select and option> tags.
Before sending any output it send appropriate mime type by setting
content type property
<card id=”thanks” ontimer=”munamobile.wml”>
<timer name=”timer1″ value=”50″ />
Thanks You can Collect your ticket from the theater 40 min prior to movie
time<br/> Booking-id= <%=orderid%>
<do type=”accept” label=”Redirecting..”>
<go href=”munamobile.wml” />