RU beehive logo ITEC dept promo banner
ITEC 325
2017fall
ibarland

homelectshws
D2Lbreeze (snow day)

php-arrays-practice
array practice

Review highlights:

checkpoint:we spent the whole class discussing this and related thoughts, and it seemed to be worth it.

Okay, we watched the video about looping over arrays, in php, and, writing the function "ol". So now we have a utils_php.txt (and utils-test_php.txt) with the code for hyperlink and ol.

TASK: write a function which takes in a bunch of URLs, and returns an html-ordered-list of those as clickable links.

TASK, version 2: as before, but the input will be key/value pairs of

Pro tip: array_map!


Using arrays and nested loops, to create html radio-buttons

coming up: We'll visit this example after discussing html input tags.

Design exercise: We want to set up a web-form, where people enter information about PokemonOkaymon.

discussion answers: If solutions are not already being displayed, see php-arrays-practice-soln.html for a sketch of where the discussion might lead.
distance lecture version: breeze video (1h42m); and the tests/code typed therein (roughly same as on this page).

video from distance lecture (breeze), 2017-feb-07 (1h42m): review forms, and work through radioTable

homelectshws
D2Lbreeze (snow day)


©2017, Ian Barland, Radford University
Last modified 2017.Sep.13 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.