Week Two (MGDP2060)

From Wiki @ Karl Jones dot com
Revision as of 13:27, 3 September 2015 by Karl Jones (Talk | contribs)

Jump to: navigation, search

This article lists topics for week two of MGDP2060.

Topics

Review topics

Review from class discussion

New topics

PHP:

Query strings:

Web forms:

FTP:

WordPress:

  • WordPress (discuss first three chapters of book)

In-class exercises

PHP time exercise

In your website root folder, create a new folder named time.

In this folder, create a new document named index.php.

  • Note the naming conventions: "time" and "index.php" are lower-case.

Use the same CSS as you did on your home page.

Set the page title appropriately.

Enter your name, and identify the exercise, "Time Exercise" or whatever

  • Use consistent styles and design across pages in your site

Demonstrate the time function, similar to the [example].

Web form exercise (using get)

In your website root folder, create a new folder named web-form-get.

  • Note the naming convention: all lower case, words separated by hyphens.

In this folder, create a document named index.html.

  • Consistent styles, set page title appropriately, enter your name, identify the exercise
    • This is standard procedure for all web pages

Create a web form with two inputs of your choice.

Use the get method.

In the same folder, create a document named </code>results.php</code>

  • Standard web page procedure, consistent styles etc.

Use PHP code to display the information submitted via the web form.

Warning - be sure to use htmlspecialchars.


For next week

PHP date exercise

...

Web form exercise (using post)

...

Online reading

  • Browse this week's vocabulary items, familiarize yourself with principles

Book reading

  • Reading: ...

See also