Booking Virtual Tickets:
ViTi Cinema Tickets
ViTi is a Web application that offers registered
users (via Facebook) the possibility to book
tickets for the theater/cinema, selecting the
desired seats. Also, the application sends e-mail
confirmation invoice in HTML and PDF formats
for reserved seats.
What does this application
XML to store information
2 PHP libraries:
FPDF, to create a ticket in
PDF format in a simple way
PHPmailer Lite, to attach
the ticket to an email and
add HTML formatting
The user is authenticated by signing in with his
The Facebook user’s e-mail address is easy to
obtain via Facebook’s API once the connection is
The obtained address is used to automatically fill
in an e-mail verification form before sending.
The purchasing of tickets is done by selecting the
desired cinema, movie, seat location and date
from a form.
Facebook authentication is done via e-mail and
The e-mail is taken on as a variables in
The server also retains the e-mail of the user and
puts it to use into its PHP code. The client and
server have to communicate to get these
After submitting, the application checks to see if
the information is valid. For instance, it will not
create a ticket without the ID of its owner.
Afterwards, the user is asked to specify an e-mail
address to which the ticket will be sent. This is, by
default, the address used in the Facebook
account, but it can be edited so as to send a
ticket to someone else.
The sent e-mail is in simple HTML format and
contains an attached PDF file with information on
the person attending the show, the name of the
cinema, date and movie.
The application executes another part of PHP
code to write down the information inside an XML
This is done simply by recognizing the names of
the fields, drop-down menus or radio buttons and
writing down the information in the fields.
The PDF file is created just before the message is sent,
using FPDF to extract information from the XML file.
It is attached to the message using PHPmailer Lite.
Out PDF file will contain a logo, the specification that this
ticket was bought using ViTi and the following data:
o the owner's name,
o the cinema,
o the movie,
o the date,
o and seat number.
The PDF ticket is created using FPDF, a library
which can create PDF files from various sources.
Here, we used the information from our XML file.
The web application then shows a confirmation
message before returning to the virtual ticket
Thank you for your time, and for using ViTi 4th
Dimension Cinema Tickets!
Cotofrei Iuliana, 3rd year class 3B
Serban Diana, 3rd year class 2B