Website Development - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Website Development

Description:

Within fki scripts. Review: Browser/Server Interaction. A PHP Application. Note the example ... Escape character. PHP functions (refer to Appendix B) header ... – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 12
Provided by: Econ82
Category:

less

Transcript and Presenter's Notes

Title: Website Development


1
Website Development Management
CIT 3353 -- Fall 2006 www.clt.astate.edu/jseydel/m
is3353
  • A PHP Exercise

Instructor John Seydel, Ph.D.
2
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

3
Miscellaneous
  • Exam 1
  • No, its not graded
  • ETA Tuesday
  • Quiz 4
  • A little better
  • Return
  • Homework due today
  • Exam 1 (on server?) ? basis for todays exercise
  • Job Fair Where was everybody?!
  • Meloni, Chapters 5-7

4
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

5
Review Browser/Server Interaction
6
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)
  • 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

7
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

8
Whats 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,place
    s)
  • Fairly complex formula (a common business
    application)
  • General code development and concurrent testing

9
Summary of Todays Objectives
  • Specify redirection to other pages
  • Become comfortable with string concatenation
  • Format numeric output appropriately
  • Write complex formulae involving exponentiation

10
Appendix
11
Loan Amortization Formula
  • Let
  • assuming interest (decimal) and term are
    converted to monthly
  • Then
Write a Comment
User Comments (0)
About PowerShow.com