TAILIEUCHUNG - PHP & MySQL Everyday Apps for Dummies phần 6

Phương pháp này lưu trữ một biến phiên PHP. Phương pháp này hy vọng hai giá trị: một chuỗi đó là tên biến và giá trị cho biến. Những con số sau đây đề cập đến số dòng trong Ví dụ 4-8: # 29 bắt đầu một khối nếu thực hiện khi các thông số đầu tiên không phải là một chuỗi. Khối ném một ngoại lệ | 206 Part III Building Online Sales Applications 148 Lines 148 to 150 display the summary Web page. 152 Begins an elseif block that executes when the button is named Ship. This condition is true when the user clicks the Edit Shipping Information button on the summary page. The block displays the shipping information form with the shipping information that is currently stored in the database. 157 Begins an elseif block that executes when the user clicks a button named Final. These buttons are displayed on the summary Web page. 159 Starts a switch statement based on which Final button the user clicks. 161 Starts the case block that executes when the value of the Final button is Continue Shopping. The block runs the script which displays the catalog index page. 164 Starts the case block that executes when the value of the Final button is Cancel Order. The block displays a cancellation Web page by including two files and destroys the session. Notice that the two include statements have a comment mark at the beginning of the line. These two statements are commented out because the cancellation Web page isn t provided in this chapter in the interests of saving space. You need to develop a cancellation page that is specific to your order process. 171 Starts the case block that executes when the value of the Final button is Submit Order. The block sets the order status to Submitted yes . 177 Calls a function that processes the credit card information. I don t provide this function because it depends on which credit card processing company you use. The company will provide you with the information needed to write the function. In general the function sends the credit information to the company and receives a code from them that either accepts or rejects the credit charge. Notice that the statement in the listing has a comment mark at the beginning of the line so that it doesn t actually execute. It s just there to show you a possible statement to use. 178 .

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.