第四章 实验 2 Web 服务端脚本编写一 实验目的 (1)通过上机实践,熟悉 Apache 服务器的安装和配置使用方法
(2)掌握 PHP 脚本语言,纯熟运用 PHP 语言进行服务器端编程
二 实验环境硬件:Macbook Pro13
3 2025early软件:Apache+MySQL+PHP7
8编辑器:Sublime Text三 实验内容及规定1 显示一个图书售卖界面,重要涉及一下内容(1)HTML 的标题为“Welcome to book seller”
(2)页面内容第一行黑体显示“You are welcome”
(3)标签提醒“please input your name”,并创建输入框
(4)标签提醒“please input your address”,并创建输入框
(5)标签提醒“please input your zip”,并创建输入框
(6)黑体显示“please fill in the quantity field of the following form”
(7)表格提成四列,分别是“book”,“publisher”,“price”,“quantity”,其中包含的信息如表格所示表 4
1 图书样表bookpublisherpricequantityWeb technologySpringer press$5
0mathematicsACM press$6
2principle of OSScience press$10Theory of matrixHigh education press$7
8(8)quantity 采纳输入框输入
(9)显示“payment method”(10)用单选按钮显示四个支付方式选项“cash”,“cheque”,“credit card”
(11)显示两个标准按钮,“submit”按钮和“reset