Professional Documents
Culture Documents
SEMESTER C 2009/2010
GROUP REPORT:ONLINE REGISTRATION
Start Date:26/06/2010
IC.No:155947
Group Member:
IC.No: ZN006021
1. Acknowledgements
2.0 Introduction
3.2Design Components
3.4.1Table Structure
4.0 Storyboards
4.1 Login
4.2 Register
4.4 Update
4.5 Delete
We are thankful to Madam Sajitha for all her support and valuable guidance during the duration
of study for this module. We, Celestin Landry and Loren Moore are very pleased for having
worked together and having made this project a success.
U0856313
U0957786
Thank you!
2.0 Introduction
Boot camp is dynamic web portal that is used to make reservations for a camp, register and login
a user, and update and delete registered users data. In the following web application we came up
with a semi functional system to satisfy the above mentioned functions.
Therefore throughout our system users can register, login and update their data if any. The
application to be designed is made up of web pages, a database and a link between the two (PHP
codes).
Hence users will be glad to register and enjoy the functionality of our system by keeping in mind
the desired outcomes.
3.0 System Design
The website is one that is semi functional in nature. Its main functionality is to make successful
reservations to the database, provide registration facilities, provide login for registered users,
update functionalities as well as delete functions. The site also acts as a source for advertising as
it showcases the services offered by the company. The website is made up of a number of pages
all linked via hyperlinks and is supported by a database to which all information is deposited
depending on a function. PHP is the code used to tie the website to the database.
The following project has been constructed using front-end software namely, Macromedia
Dreamweaver and back-end software namely PHP script.
Useradmin page: the page entered once a registered user access upon logging in. This
page provides the functions to update and delete entries made to the database.
Register page: page used to register users in order for them to access their information in
the database.
The linked pages are shown in white as well as the visited links.
The website is also supported by a database that is used as a central repository of all stored user
data. It comprises of three tables namely:
Campreservation: used to store data relating to reservations that have been made for the
camp
Campregistration: used to store data relating to registration information that has been
made.
Login: Registered users username and password stored to this table or verification.
3.3 UML diagram
Bootcamp Database
<<extend>>
view update entry Submit Criteria
<<extend>>
Login
Register
Bootcamp
Make a Booking Use case
The following use case diagram shows the interaction within the system with different actors.
3.3.2 Sequence diagram
The sequence diagrams below are used to illustrate the order of actions for a particular function.
enter name ( )
enter password ( )
click "submit"
verify user ( )
return
E1: Invalid
username and
password
enter name ( )
useradmin displayed ( )
enter name ( )
enter age ( )
enter nationality ( )
enter email ( )
click "submit"
verify data
homepage displayed ( )
The illustration above illustrates the sequence diagram used to make a reservation for the camp.
: customer Bootcamp PHP Camp
E1: No entry
enter name ( ) in db so table
will not be
displayed
display form
manipulate data ( )
record updated
The illustration above illustrates the sequence diagram used to update a camp entry made to the
database.
enter name ( )
click "submit"
record deleted
The illustration above illustrates the sequence diagram used to delete the camp entry made in the
database.
3.4 Web application structure
The table structure is to depict the tables within the database used to store data.
Figure 1.0 above illustrates the camp reservation table in the database.
Registration table
The following diagram shows how users should navigate through the content of the website.
Homepage
The following data flow diagram depicts the main function of the application upon registration, a
user can login to the system in order to update or cancel his or her profile and reservation
concerning the camp. The user can directly book from the site through Book Now hyperlinks or
function for particular events.
4.0 Storyboards
4.1 login
Boot camp
Description of screen:
The following interface acts as the home page as well as the login in for registered users. He/she is
capable of accessing the client admin functions via the website upon submission of valid username
and password.
Comments: Nil
4.2 Register
Boot camp
Description of screen:
The following interface is used to register; the user enters a username and password and submits it to
the database.
Comments: Nil
4.3 Camp reservation
Boot camp
Description of screen:
The following interface acts as the home page as well as the login in for registered users. He/she is
capable of accessing the client admin functions via the website upon submission of valid username
and password.
Comments: if any of the fields is left empty and error will be displayed to ensure all data is entered
before submission to the database.
4.4 Update
Boot camp
Description of screen:
The following interface is used for updating data that has already been submitted to the database.
Update
data in
table
Comments: Upon re-entering data the new entry overwrites the previous entry
4.5 Delete
Boot camp
Description of screen:
The following interface is used for deleting data stored to the database already
Presses
delete to
remove
Comments: Once the delete button is pressed the entry in the database is removed
5.0 Interface design
Figure 1.0
6.0 Source and executable codes
<html>
<head>
<title>camp home</title>
<style type="text/css">
<!--
body {
background-image: url(camp%20images/grey_background.gif);
body,td,th {
color: #333333;
.style1 {
color: #FFFFFF;
font-weight: bold;
.style3 {
color: #666666;
font-style: italic;
-->
</style>
</head>
<body>
<tr>
<td width="66%">
<td width="17%"></td>
</tr>
<tr>
<td height="277"></td>
<td>
<tr>
</tr>
</table>
<hr>
<p>Boot camp a freindly and healthy environment used to toughen up<img src="camp images/imagebvs.jpeg"
alt="canoe" align="right" width="277" height="163"> </p>
<p>and let those shy kids excel! No one is ever to big or to small to come and have the experience of a life time!
games, wilderness camps, and so much more to bring out the confidence in YOU! </p>
<p>If your a kid and your looking for a new adventure wonder look no further boot camp is just the place for you! with
plenty of room to run around and play and make life lonf friends!</p>
<p>So when schools out, make sure your in the sweetest place to be!!! </p></td>
<td></td>
</tr>
<tr>
<td height="173"></td>
<caption style="font-size:12px">
</caption>
<tr>
<td><span class="style2">Username:</span></td>
</tr>
<tr>
<td><span class="style2">Password</span>:</td>
</tr>
<tr>
<td></td>
|
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<td></td>
</tr>
<tr>
<td height="21"></td>
<td> </td>
<td></td>
</tr>
</table>
</body>
</html>
<html><title>register</title>
<?php
$username=$_REQUEST['username'];
if(empty($username))
//validate Password.
$password=$_REQUEST['password'];
if(empty($password))
$con=mysql_connect("localhost","root","root");
mysql_select_db("camp",$con);
if (mysql_numrows($res) != 0) {
echo"<p><font color=red>Username and Password exist already! Enter new username & pass</font></p>";
else{
mysql_query($insert_query);
mysql_query($insert_query);
header("Location:useradmin.html");
mysql_close($con);
else{
echo"<p><a href=register.html>Register</a></p>";
?>
</html>
INDIVIDUAL REPORT:ONLINE REGISTRATION
.
Fig2: Username and Password are requested in order to get connected and create your database.
Fig 3: Upon successful connection you have to click on the create new database
button following by the name of your database.
B) How to connect a database?
In order to connect to the database we need to write within the notepad or PHP in
Dreamweaver code view the following syntax:
• Mysql_connect(servername,username,password)
Parameter Description
Servername Optional. Specifies the server to connect to. Default value is "Localhost”
Username Optional. Specifies the username to log in with. Default value is the name of the user that
owns the server process
Password Optional. Specifies the password to log in with. Default is "", in our case the default is root.
In the following example we store the connection in a variable ($con) to use in the script. The
die part will be executed if the connection fails:
<? php
$con=mysql_connect (“localhost”,”root”,”root”);
If(!$con)
{
Die (‘Couldnot connect:’.mysql_error ());
}
//some code here…
?>
<? php
$con=mysql_connect (“localhost”,”root”,”root”);
mysql_query (“INSERT INTO Campreservation (Name, Age, Nationality) VALUES
(‘landry’,’14’,’gabonese’);
mysql_close ($con);
?>
D) How to delete data?
In order to delete data we can type the following code in our text editor such as notepad or
through PHP in dreamweaver code view. We can also insert data in a table using phpadmin in
Easywamp interface. This will be the code in the example below:
<?php
$name=$_REQUEST['name'];
$con=mysql_connect("localhost","root","root");
mysql_select_db("camp",$con);
$sql="DELETE FROM campreservation WHERE name='$name'";
mysql_query($sql,$con);
mysql_close($con);
?>
<?php
$con=mysql_connect(“localhost”,”root”,”root”);
Mysql_select_db(“camp”,$con);
$sql=”SELECT * FROM Campreservation WHERE name=’loren’”;
Mysql_query($sql,$con);
Mysql_close($con);
?>
H) Time Frames/Problems
Doing this project, our main problem was the time allocated for the project, nevertheless we
submitted our project in due time. Moreover writing codes was not so easy we face some
challenging while writing the update and delete codes. All records should have been shown
in tables according to the assignment paper, where users will update and delete their
information if any. We were not able to see the tables only the php codes scripts errors. After
several tries we came out with the said tables and functions so that users can view their data
and update it or delete it.
APPENDICES
Appendix A: References
James A. O’Brien, 2003, Introduction to Information Systems, Essentials for the e-
Business Enterprise, 4th edition.
Julie Meloni, Matt Telles, 2008, PHP6, Fast & Easy Web Development.
Appendix B: Codes
1. Update.php code
<html>
<head>
<title>Update</title>
<style type="text/css">
<!--
body {
background-image:
url(camp%20images/grey_background.gif);
body,td,th {
color: #333333;
.style1 {
color: #666666;
font-weight: bold;
}
-->
</style>
</head>
<body>
<tr>
<td width="66%">
<td width="17%"></td>
</tr>
<tr>
<td height="100"></td>
<td>
<tr>
<td width="10%"><div
align="center"></div></td>
</table>
<hr>
</head>
<body>
<?php
$name=$_REQUEST['name'];
$age=$_REQUEST['age'];
$nationality=$_REQUEST['nationality'];
$email=$_REQUEST['email'];
$address=$_REQUEST['address'];
$contact=$_REQUEST['contact'];
$con=mysql_connect("localhost","root","root");
mysql_select_db("camp",$con);
if(!mysql_query($query,$con))
die('Error:'.mysql_error());
else
?>
</body>
</html>
2. Login.php code
<?php
$con=mysql_connect("Localhost","root","root");
$username=$_REQUEST['username'];
$password=$_REQUEST['password'];
mysql_select_db("camp",$con);
//query
$result=mysql_query($sql,$con);
if(mysql_numrows($result)==0)
else
header("Location:useradmin.html");
mysql_close($con);
?>