Presentation is loading. Please wait.

Presentation is loading. Please wait.

Website Development & Management A PHP Exercise CIT 3353 -- Fall 2006 www.clt.astate.edu/jseydel/mis3353 Instructor: John Seydel, Ph.D.

Similar presentations


Presentation on theme: "Website Development & Management A PHP Exercise CIT 3353 -- Fall 2006 www.clt.astate.edu/jseydel/mis3353 Instructor: John Seydel, Ph.D."— Presentation transcript:

1

2 Website Development & Management A PHP Exercise CIT 3353 -- Fall 2006 www.clt.astate.edu/jseydel/mis3353 Instructor: John Seydel, Ph.D.

3 Student Objectives Upon completion of this class meeting, you should: Be able to specify redirection to other pages Become comfortable with string concatenation Be able to format numeric output appropriately Be able to write complex formulae involving exponentiation

4 Miscellaneous Exam #1 No, it’s not graded ETA: Tuesday Quiz #4 A little better Return Homework due today Exam #1 (on server?)  basis for today’s exercise Job Fair: Where was everybody?! Meloni, Chapters 5-7

5 Preparing for the Exercise Open these applications Internet Exploiter SmartFTP PHP Designer or NotePad My Computer Copy files from SuSE1 public_html and rename calc_temp.php  calc.php calc_proc_temp.php  calc_proc.php Use c:\ProgramFiles\ApacheGroup\Apache2\htdocs  Delete all original files if possible  Transfer exercise files later to jump drive if desired Create directories on SuSE1 Within public_html  fki Within fki  scripts

6 Review: Browser/Server Interaction

7 A PHP Application Note the example www.suse1.astate.edu/~ford-j/fki Monthly payments Inputs  A = Loan  n = Term (months)  i = Interest (monthly, decimal) Output: monthly payment (Pmt)monthly payment Finally, note the use of the term application No longer simply a web page Instead, an application program with numerous interdependent components  Interface pages Input Output  Include files  Processing units  Other important files

8 What Needs to be Done Note the handout Form file is complete Processor file (calc_proc.php) needs to be edited View these in the browser Look at all the warnings Why are they there? Open the processor file in an editor Work along as we add the necessary scripting When done, upload files to your /fki/scripts directory on SuSE1

9 What’s Being Illustrated Rudimentary form validation (server-side) String manipulation Concatenation  Simple operator:.  Assignment operator:.= Mixing literals and variables Escape character PHP functions (refer to Appendix B) header() print() or echo() pow() number_format(value) and number_format(value,places) Fairly complex formula (a common business application) General code development and concurrent testing

10 Summary of Today’s Objectives Specify redirection to other pages Become comfortable with string concatenation Format numeric output appropriately Write complex formulae involving exponentiation

11 Appendix

12 Loan Amortization Formula Let assuming interest (decimal) and term are converted to monthly Then


Download ppt "Website Development & Management A PHP Exercise CIT 3353 -- Fall 2006 www.clt.astate.edu/jseydel/mis3353 Instructor: John Seydel, Ph.D."

Similar presentations


Ads by Google