TAILIEUCHUNG - Beginning PHP6, Apache, MySQL Web Development- P7

Beginning PHP6, Apache, MySQL Web Development- P7:Welcome to Beginning PHP6, Apache, MySQL Web Development , your new trusty resource for assistance in creating your own dynamic web sites. There are a lot of technologies available that can be used to deliver great web sites, and we ’ re glad you chose the Apache/MySQL/PHP (sometimes referred to simply as AMP) approach. You may or may not have had a taste of these three components in the past, but either way we ’ re confident that you will be impressed with the power that lies within them | Chapter 5 Form Elements Letting the User Work with Data Figure 5-9 How It Works This set of scripts is designed around a simple idea passing data through multiple scripts from form to form. The key to this has been input elements with their type attribute set to hidden. These fields are not displayed by the browser to the user but their values are submitted with the rest of the form fields data. This is but one way to pass data between forms though it is very common. Summary You ve learned a lot of about forms in this chapter. Forms are composed of fields. Each field type has a specific purpose and allows a certain data type to be entered. Text fields can be used to enter text or numeric data. Lists can be used to enter any type of data and have a limited set of possible values. Lists are a good way to drive user input when multiple choices are available. Check boxes are good for true or false values. 151 Part I Movie Review Web Site Exercises See how you might accomplish the following 1. Create a form and a processing page that let you choose a rating stars thumbs up number from 1 to 5 whatever and provide comments for a movie. 2. Create a form with several text input boxes that allow you to populate the options of a select field on a subsequent page. 3. Create a calculator form that takes two numbers and calculates their sum. 152 6 Letting the User Edit the Database Retrieving data from a database is all well and good when you ve first fed the database some data. But databases don t generate their own content and only a few get fed data by other systems such as integrated systems. What this means is that you have to feed your system with data that comes from PHP. For our purposes here and from what you ve seen in previous chapters all interaction with the database uses SQL. You already know the basic SQL syntax to put your own data in a table and retrieve it for users to see. But now let s look at the other side of the equation data processing. This chapter .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.