Electronic Commerce Server-Side Scripting Exercises MIS Spring 2006 Instructor: John Seydel, Ph.D.
Agenda Some review questions Some web page exercises and demonstrations: Server-side includes Form handling with PHP Automated confirmations Mass mailing from a database
Review Questions Chapter 8 Question 3 – web servers Question 4 – desktop vs. server Chapter 9 Question 4 – basic vs. midrange ecommerce software Question 6 – KM software Chapter 10 Question 1 -- cookies Question 2 -- steganography Chapter 11 Question 3 – PayPal and other epayment systems Question 6 – smart cards
PHP Exercises: FKAuto Application FKAuto customer interface (demonstration) Sign-in form Personalized welcome/registration page Registration confirmation page Confirms registration Sends confirmation FKAuto intranet application (demonstration) message form Message confirmation page Confirms sending of message Lists recipients (from customer database) Displays message Sends message to listed customers
Getting Started Login to your computer as follows: UserID = peachtree Password = accounting Domain = BU (this computer) Start the following Internet Explorer (open your SuSE1 site) SmartFTP (view server in one window and My Documents in other) NotePad Note the following files in /public_html (copy them to your local machine, e.g., My Documents) banner_fki.jpg fkauto_0.html fkauto_1.html fkauto_2.php fkauto_3.php fkauto_4.php footer.txt
Exercises (Refer to Handouts) Convert fkauto_0.html to PHP file Save with new extension (.php) Replace footer code with call to include file Save, upload to server, and test Convert fkauto_1.html to PHP file Save with new extension (.php) Get form data Change value in txtName to PHP scriptlet Add call to include file Save, upload to server, and test Modify fkauto_2.php to make it functional Replace “*****” with correct code Remove comment markers (“//”) as you go Save, upload to server, and test Modify fkauto_4.php to make it functional Replace “*****” with correct code Remove comment markers (“//”) as you go Save, upload to server, and test