A Simple Online Store By: Lisa Schwartz ECE 3553 – Multifarious Systems Dr. Këpuska – Fall 2006.

Slides:



Advertisements
Similar presentations
The innovative payment website for parents and schools Parents Tour Rev: 16Mar12.
Advertisements

Secretary of State Delbert Hosemann
Information Regarding
USDA Advantage!
Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
Task Scenario On September 27, 2004 Larry King placed a carry-out order to Domino’s Pizza. He ordered one pepperoni pizza and a order of bread stixs. He.
ICHAT is the only public resource for non-fingerprint-based Michigan criminal history background checks.
NMED 3850 A Advanced Online Design February 25, 2010 V. Mahadevan.
Auburn Dominos Online Pizza Order System Daniel Flickinger Assignment #5.
Business Cards, Letterhead & Envelopes
XP Tutorial 9 New Perspectives on JavaScript, Comprehensive1 Working with Cookies Managing Data in a Web Site Using JavaScript Cookies.
The easy way to shop online and explore all around market sitting at home Project Created & Presented By: Siddhant Aggarwal 2374 CSE-B(4 TH YEAR) DITM.
ServSafe Starters Online Training for Feeding America Agencies
STOCKDOC Advanced Stock Management System
Web forms in PHP Forms Recap  Way of allowing user interaction  Allows users to input data that can then be processed by a program / stored in a back-end.
INTERNET APPLICATION DEVELOPMENT For More visit:
MasterCard SDOL Overview. Key Information to Remember Website address is First time login.
PC SHOP by: Hussein Zahr ECE 3553: Multifarious Final Project.
VA Advantage!
Welcome to Century Equipment’s Shop Online Website! This presentation will highlight some of it’s key features.
Online Music Store MSE Project Presentation I Presented by: Reshma Sawant Major Professor: Dr. Daniel Andresen.
CSCI 6962: Server-side Design and Programming Support Classes and Shopping Carts.
1 DoD Cardholder Self Registration November 21, 2008.
How to Use the eFISH Portal to Pay Your 2013 Observer Fees.
L/O/G/O. Contents of the project Abstraction Electronic shopping system is a system designed to the benefit of two people at the same time a resource.
SHOPPING CARTS CHAPTER 19. E-COMMERCE Typically, an e-commerce site will have public pages and admin pages.
Placing Promotional Product Orders through GROUP-BUYING.
My final project was creating an online weapon store. In my store I have two different lists of weapons, melee and fire. I have a registration form where.
ASP.NET Event Handlers Database -> Browser ->Shopping Basket Validators.
Near East University Department of Computer Engineering E-COMMERCE FOR LAPTOPS SELLING COMPANY Abdul Halim Abu Kuwaik
Getting Started. Before you register A valid address Course ID from your instructor - something like Student access code – comes with your text.
CS 174: Web Programming September 30 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
Internet Information Systems Writing to Databases and Amending Data.
To navigate through this Tutorial use your mouse, or Page Up key or Page Down key Registration Tour Unlock the “POWER” of V7.2 Introduction Slide One.
1. Visit 2. Click on
Checkout Options Tour Unlock the “POWER” of V7.2 To navigate through this Tutorial use your mouse, or Page Up or Down Key Introduction Slide One.
Okalo Daniel Ikhena Dr. V. Z. Këpuska December 7, 2007.
Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar
AudioLunchbox Screen Prototypes. Start Up Screen Login Account Create Order Screen Admin Panel Welcome Screen Verify Order Page Payment/ Order Confirmed.
The Web Wizard’s Guide To JavaScript Chapter 7 Cookies: Maintaining State.
Getting Started!. Before you register A valid address Course ID from your instructor - something like Student access code – comes with your text,
PaymentNet: Cardholders Procurement Services Laurie Krauel.
School Specialty Online Ordering Through Skyward.
12/14/20151 Uniquescriptz Backend Support Document Ver 2.0.
CS 149 Advance Perl Final Project Implementing an E-commerce shopping cart using cookies Presented by Dzung Tran.
Signing In Enter in your address and password to log in to the site. *****
 Product Recommendations  Managing Product Recommendations  Types of Product Recommendations  Product Out of Stock  Out of Stock Management  Let.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
 Shopping Basket  Stages to maintain shopping basket in framework  Viewing Shopping Basket.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
System Modules Overview
Page 1 of 17 To the ETS – Password Reset Online Training Course Clients have the ability to automatically update passwords at any time through the automated.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
ASSIGNMENT 2 Salim Malakouti. Ticketing Website  User submits tickets  Admins answer tickets or take appropriate actions.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
Navigation: If the tutorial opens up in your web browser, simply click your mouse to advance to the next slide. Use the “Backspace”
Getting Started. Before you register A valid address Course ID from your instructor - something like Student access code – comes with your text.
Increase Sales With Your Very Own Ecommerce Furniture Website Call us
ATCC ® GUIDE TO ONLINE ORDERING. 2 Welcome to the new ATCC ® website We’ve integrated several new features to make online ordering easier for you and.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
A Project Report On Online Shopping By: Ruchi Kumari (08ERWCS089)
Dolabuy.com's available payment methods How to check out at dolabuy.com?
The Login Page is the first page your customers
Step 1 Login on UHCP Site
To the ETS – Password Reset Online Training Course
MontaVida ORDERING PROCESS.
ServSafe Starters Online Training for Feeding America Agencies
To the ETS – Password Reset Online Training Course
Grocery Store Outline csc242 – web programming.
ServSafe Starters Online Training for Feeding America Agencies
Presentation transcript:

A Simple Online Store By: Lisa Schwartz ECE 3553 – Multifarious Systems Dr. Këpuska – Fall 2006

Problem Statement: The goal of this project is to create an online store from which the user can create an account, log-in, input his/her address and credit card information, and “purchase” items.

A Few Details and Features: All user inputs will be verified for validity of type and length using regular expressions and if statements. 1. if ( !ereg("^[A-Za-z0-9 ]{1,12}$", $password)) 2. { 3. passwordTooLong(); 4. die(); 5. } 1. if ( !$street || !$city || !$state || !$zip_code ) 2. { 3. fieldsBlank(); 4. die(); 5. }

The project uses a session to know which user is logged-in at the time and store other variables $_SESSION['total'] = $total; 1. $tot = $_SESSION['total']; 1. session_destroy();

White pages are “stationary” pages, while yellow pages will be redirected after a timer expires. 1. print( "You are being redirected to a page to enter your new address" ); 2. print( "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3; 3. URL= ); 1. print( "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; 2. URL= ); 1. Logout

Queries are used to insert, delete, update, and select to/from the database. 1. $query = "SELECT Account_Number, Street, City, State, Zip_Code FROM 2. Addresses WHERE Account_Number = ". $_SESSION['acc_num']. ""; 1. $query2 = "INSERT INTO Shopping_Cart ( Account_Number, Item_ID ) 2. VALUES ( ". $_SESSION['acc_num']. ", '$item')"; 1. $query = "UPDATE Addresses SET Street = '$street', City = '$city', 2. State = '$state', Zip_Code = '$zip_code' WHERE 3. Account_Number = ". $_SESSION['acc_num']. ""; 1. $query = "DELETE FROM Shopping_Cart WHERE 2. Account_Number = ". $_SESSION['acc_num'];

1. function passwordTooLong() 2. { 3. print( " Access Denied <body style = \"font-family: 4. arial; font-size: 1em; color: red\"> Please make sure your 5. password is 12 characters or less. " ); 6. } 1. function noItems() 2. { 3. print( " Access Denied <body style = \"font-family: 4. arial; font-size: 1em; color: red\"> You have no items in 5. your cart! " ); 6. } PHP functions are defined to inform the user of any invalid entries.

Tables were used to organize the forms. 1. print( "<table border = \"0\" cellpadding = \"2\" cellspacing = \"0\" 2. width = \"45%\">" ); 3. print( " Type of Card: " ); 4. print( " 5. Discover " ); 6. print( " Mastercard " ); 7. print( " Visa " ); 8. print(" American 9. Express "); 10. print( " Number: <input type = \"text\" 11. name = \"number\" /> " );

Continued… 12. print( " Expiration Year: " ); 13. print( " 2006 " ); 14. print( " 2007 " ); 15. print( " 2008 " ); 16. print( " 2009 " ); 17. print( " 2010 " ); 18. print( " 2011 " ); 19. print( " 2012 " ); 20. print( " " );

Tables were also used in the display of the Shopping Cart. 1. print( "<table border = \"1\" cellpadding = \"2\" cellspacing = \"0\" 2. width = \"85%\">" ); 3. print( " SHOPPING CART Item Id 4. Item Name Quantity Unit Price " ); 1. for ($counter2 = 0; $row2 = mysql_fetch_row($result2); $counter2++) 2. { 3. $row21 = $row2[1]; 4. if(!isset($myItems[$row21])) 5. $myItems[ $row21 ] = 1; 6. else 7. $myItems[ $row21 ] ++; 8. }

1. for ($counter = 0; $row = mysql_fetch_row($result); $counter++) 2. { 3. foreach($myItems as $key => $value ) 4. { 5. if ( $key == $row[0] ) 6. { 7. print( " ". $key. " ". $row[2]. 8. " ". $value. " $". $row[1]. " " ); 9. $subtotal += $value*$row[1]; 10. $totalNumberOfItems += $value; 11. } 12. } 13. } Continued…

1. if ( ereg("^[1-9]+.[0-9]{1}$", $subtotal)) 2. print( " Subtotal ". 3. $totalNumberOfItems. " $". $subtotal. "0 " ); elseif ( ereg("^[1-9]+$", $subtotal)) 6. print( " Subtotal ". 7. $totalNumberOfItems. " $". $subtotal. ".00 " ); else 10. print( " Subtotal ". 11. $totalNumberOfItems. " $". $subtotal. " " ); Continued…

Acknowledgements  Thanks to everyone that helped me test my code and a big thanks to Tudor that assisted me whenever I got stuck on something!