Loops are such an important construct in programming - this example puts the while loop into practice in PHP and gives a more advanced and in-depth look at a while loop building a sophisticated form that can be submitted by a user.
For a user who wants to play the lottery online, they can have an online lottery card showing all the numbers from which they can pick their selection.
00:50 part 1: Making the structure of the lottery slip using a while loop that produced 45 different divs that are then design and laid out using CSS.
06:15 part2: add the checkboxes for picking the numbers
07:45 part 3: building it into to part of a form that can be submitted to a results page that gathers the chosen numbers.
Get the code: [ Ссылка ]
Ещё видео!