Вы находитесь на странице: 1из 1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . .

ix
Chapter 1 Getting Started with PHP . . . . . . . . . . . . . . . . . . 1
Basic HTML Syntax. . . . . . . . . . . . . . . . . . . . . . . . . 2
Basic PHP Syntax . . . . . . . . . . . . . . . . . . . . . . 7
Using FTP . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Testing Your Script . . . . . . . . . . . . . . . . . . . . . 12
Sending Text to the Browser . . . . . . . . . . . . . . . . 15
Using the PHP Manual . . . . . . . . . . . . . . . . . . . 18
Sending HTML to the Browser . . . . . . . . . . . . . . . 22
Adding Comments to Scripts. . . . . . . . . . . . . . . . 25
Basic Debugging Steps. . . . . . . . . . . . . . . . . . . 28
Review and Pursue . . . . . . . . . . . . . . . . . . . . . 30
Chapter 2 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
What Are Variables?. . . . . . . . . . . . . . . . . . . . . 32
Variable Syntax . . . . . . . . . . . . . . . . . . . . . . . 36
Types of Variables. . . . . . . . . . . . . . . . . . . . . . 38
Variable Values. . . . . . . . . . . . . . . . . . . . . . . . 41
Understanding Quotation Marks . . . . . . . . . . . . . 45
Review and Pursue . . . . . . . . . . . . . . . . . . . . . 48
Chapter 3 HTML Forms and PHP . . . . . . . . . . . . . . . . . . . . 49
Creating a Simple Form . . . . . . . . . . . . . . . . . . . 50
Choosing a Form Method . . . . . . . . . . . . . . . . . . 54
Receiving Form Data in PHP . . . . . . . . . . . . . . . . 57
Displaying Errors . . . . . . . . . . . . . . . . . . . . . . . 61
Error Reporting . . . . . . . . . . . . . . . . . . . . . . . . 64
Manually Sending Data to a Page . . . . . . . . . . . . . 67
Review and Pursue . . . . . . . . . . . . . . . . . . . . . 72

Вам также может понравиться