ECommerce Basic Applications Basic Application Development ECOMMERCE JOBS
E-Commerce Basic Applications Basic Application Development E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 1 Basic Appl. Mgmt. Ver: 1. 0
Forms and Actions • • Forms Basic Form Elements Post and Get Form Action Example with PHP E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 2 Basic Applications Mgmt.
Form Action Handling Database Get – Vars in Header Form Press Submit Action Post/Get 2. 1. 3. Post – Vars Via Port (not Visible) E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities *. php Module Accessing Transported Vars 4. 5. Changing Database Receive Connection data Connection_data. php 3 Basic Applications Mgmt.
INPUT Element • Authors may create two types of controls that allow users to input text. • The INPUT element creates a single-line input control and • the TEXTAREA element creates a multi-line input control. In both cases, the input text becomes the control's current value. E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 4 Basic Applications Mgmt.
Example With Input Element E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 5 Basic Applications Mgmt.
Example With Input Element E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 6 Basic Applications Mgmt.
Example Code Step 5 Database 4. Useradmin. php Press Submit Calling again if field empty Get – Vars in Header 1. Action Post/Get E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 2. Useradmin. php 3. 5. Changing Database (if correct inputs) Receive Connection data Connection_data. php 7 Basic Applications Mgmt.
Example Code Step 1/2 Database 4. Useradmin. php Press Submit Calling again if field empty Get – Vars in Header 1. Action Post/Get E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 2. Useradmin. php 3. 5. Changing Database (if correct inputs) Receive Connection data Connection_data. php 8 Basic Applications Mgmt.
Example Code Step 4 Database 4. Useradmin. php Press Submit Calling again if field empty Get – Vars in Header 1. Action Post/Get E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 2. Useradmin. php 3. 5. Changing Database (if correct inputs) Receive Connection data Connection_data. php 9 Basic Applications Mgmt.
Other Control Elements • • Radio Buttons Select Boxes Check Boxes Text Areas • See http: //www. w 3. org/TR/REChtml 40/interact/forms. html E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 10 Basic Applications Mgmt.
Exercise for Master Examples 1 and 2 • Receive the code useradmin. php • Read and understand the code, explain it to the tutor • Adapt the code to your DB tables and access controls and developer a customer registration form E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 11 Basic Applications Mgmt.
References • • • PHP for Beginners, Wrox Press, 1998 Professional PHP Programming, Wrox Press, 2000 Professional PHP 4 XML, Wrox Press, 2002 PHP Conference Materials Site http: //conf. php. net/ Online PHP Manual http: //www. zend. com/manual/ HTML 4 for Dummies, Fourth Edition -- by Ed Tittel (Author), Natanya , John Wiley and Sons, 2003 E-COMMERCE JOBS This project (Project number: HU/01/B/F/PP-136012) is carried out with the financial support of the Commssion of the European Communities 12 Basic Applications Mgmt.
- Slides: 12