danforys.com
Dan is a web developer in London. He is interested in all things Internet, Linux and Mac.
-
Learning PHP - Part 5: Your first dynamic web page
Posted on November 3rd, 2009 No commentsAfter the previous parts of this tutorial, you should be familiar with PHP variables and arrays.
Now we will use these concepts to actually make a working web page. This page will contain a form that you can submit, and we will write PHP code to handle the form contents.
-
Learning PHP - Part 4: Controlling flow
Posted on November 2nd, 2009 No commentsSo now we’ve looked at variables and arrays, it’s time to make the code a little bit smarter.
We’ve already seen how the foreach() can loop (iterate) over items in an array, but there are other ways to alter the flow of the code as well.
Conditional
One of the most common PHP statements is the “if”. In a nutshell, “if” does the following:
if (some condition is true) { run this code }
