Exercise: Variables, Strings & Numbers

Create a new file called first.php – then… Create the basic HTML structure. In the <body> section, create a <h1> tag with a header that says “My first PHP program”. Create three variables and set them equal to a integer number, float number and boolean. Create three string variables and store 1-3 words in each.…

Read More

Intro to Functions

Features of functions Every programming language lets you create blocks of code that when called will perform a given task. Functions can return an output value. Functions generally are given one or more values as input. These are called parameters. The function contains instructions used to create the output based on these inputs. For example,…

Read More

Homework: Making a Form

For this week, create a form that we can work on creating scripting for next week.  It should have: At least one input of type text. At least one input of type radio or checkbox. At least one input of type textarea At least one select input. One password input A submit button. Steps: Create…

Read More

The form element

Forms are used to collect information from the user and are created by using the <form> element. The form element has two attributes: action – tells where the form contents will be sent to – this is generally a script written in PHP or some other server-side language that processes the data and does something…

Read More