web技术实验报告(精品文档)_共8页

上传人:夏** 文档编号:465740755 上传时间:2022-11-10 格式:DOC 页数:8 大小:219.50KB
返回 下载 相关 举报
web技术实验报告(精品文档)_共8页_第1页
第1页 / 共8页
web技术实验报告(精品文档)_共8页_第2页
第2页 / 共8页
web技术实验报告(精品文档)_共8页_第3页
第3页 / 共8页
web技术实验报告(精品文档)_共8页_第4页
第4页 / 共8页
web技术实验报告(精品文档)_共8页_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《web技术实验报告(精品文档)_共8页》由会员分享,可在线阅读,更多相关《web技术实验报告(精品文档)_共8页(8页珍藏版)》请在金锄头文库上搜索。

1、实验报告( 2014 / 2015 学年 第 2 学期)课程名称Web技术实验名称Web服务端脚本编写实验时间2015年05月13日指导单位指导教师南京邮电大学计算机学院韩京宇学生姓名陶飞班级学号B13040932学院(系)计算机软件专业软件工程实验报告实验名称Web 服务端脚本编写指导教师实验类型上机实验学时2实验时间韩京宇2015-05-131、实验目的(1)通过上机实践,熟悉Apache 服务器的安装和使用方法。(2)掌握 PHP 脚本语言,熟练运用PHP 语言进行服务器端编程。2、实验环境硬件:微机软件: Apache,PHP 模块编辑器: vim 或者 gedit3、实验内容1.显示

2、一个图书售卖界面,主要包括以下内容(1)HTML 标题 “Welcom 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)表格分成四列,分别是“ boook”,

3、“ publisher”,“price”,“quantity ”,其中包含信息如表格所示(8)quantity 采用输入框输入。(9)显示 “ payment method”0(10)用单选按钮显示三个支付方式选项“cash”,“cheque”,“creditcard”。(11)显示两个标准按钮, “submit”按钮和 “ reset” 按钮。2 当用户输完各个内容并按下 “ submit” 按钮后,通过脚本生成新的界面。其中包含以下内容(1)customer name(2)customer address(3)customer zip(4)以表格形式显示订购图书信息,包括四列“ book”

4、,“ publisher”,“price”,“total cost” ,其中 total 通过脚本动态计算生成。未购买的图书不显示。(5)计算并显示 “(名字) has bought (数量) books ”。(6)计算并显示 “(名字) paid(总额 )”。(7)根据用户的选择方式显示 “paid by (支付方式 )”。3 将用户购买信息存入到文件当中,每个客户包含三行信息,即2 中的( 5)(6)( 7)三句话。4 如果用户按的是 “重置按钮 ”,则清楚所有的输入信息。1四丶实验过程Welcome to book seller You are wlcomeplease input yo

5、ur name please input your address please input your zip please fill in the quantity field of the following form bookpublisherpricequantityWeb technologySpringer press$5.0 mathematics2ACM press$6.2 principle of OSScience press$10 Theory of matrixHigh education press$7.8 Payment MethodCash Cheque Cred

6、it Card 3real roots of a quadratic equation !-var a = prompt(what is the value of an,);var b = prompt(what is the value of bn,);var c = prompt(what is the value of cn,);var d = b*b-4.0*a*c;if(d0)document.write(Error Input!);elsevar root_part=Math.sqrt(d);var denom=2.0*a;var root1=(-b + root_part)/denom; var root2=(-b - root_part)/denom; document.write(The first root is:,root1,); document.write(The second root is:,root2,);/-Process the qwe.html formCustormer:?phpprint($name$street$city);?table bord

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 幼儿/小学教育 > 幼儿教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号