Download presentation
Presentation is loading. Please wait.
Published byCorey McKenzie Modified over 9 years ago
1
IS 118 Introduction to Development Tools Week 1 part 2
2
Some general rules and things to know about PHP Example on Pg 13 – Listing 1.1 Html code is enclosed in angles, PHP uses the same format In general you use lower case for commands - note the double quotes This means that it is a literal, a value being supplied Each command that is started has to be ended Eg has to end with You use a plain text editor such as notepad (within windows) to write your code. You can not use MS Word or Wordpad
3
Listing 1.1 Let’s look a bit at the code So Means this is a form we are creating, named processorder.php and we are going to post it or show it <table border=“0” means create a table that I am defining create a row in the table Item this creates a column in the row, size 150 and put the text Item in it., end the definition with Quantity create a second column, width 15, put Quantity in it end of the row definition
4
Listing 1.1 continued Next row is all that is needed because the widths are known Tires put tires in the column This one is complicated looking isn’t it – So lets take it apart:
5
Listing 1.1 continued This column is going to get input, we know this because it says input type=“text” The input will be centered The name of the input is tireqty The size of the input is 3 and the maximum size is 3
6
Listing 1.1 continued Last thing for this listing is: end definition of the table end definition of the form
7
Colspan=“2” says this row will span both columns making it like one The contents of the column will be centered The input type is “submit” With a value of “Submit Order” This creates a submit button
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.