Consider the following fictional scenario.
The "MyAppointment" website offers scheduling dentist appointments. The user can choose from 3 surgeries: "Best Beijing", "Perfect Smile Liverpool", "One Dentist Shellharbour". To make the appointment the user needs to provide the name, phone, email and prefered time. The webform also has a text area where the user can include details (if any). Additionally, the user can indicate the prefered method for communication (reminders regarding the appointment).
The back-end service is running at http://myAppo.com.au/query and it accepts GET request with the following parameters:
*dentist: this parameter is to specify the user's preferred surgery, and the acceptable values are:
*woll: for "Best Beijing"
*liv: for "Perfect Smile Liverpool"
*shell: for "One Dentist Shellharbour"
*name: this parameter is to specify the name of the user;
*phone: this parameter is to specify the user's mobile phone number;
*email: this parameter is to specify the user's email;
*time: this parameter is to specify the user's preferred time slot, and the acceptable values are:
1: for 9-10 am
2: for 10-11 am
3: for 12-1 pm
4: for 1-2 pm
5: for 2-3 pm
*note: this parameter is to specify additional details;
*reminder: this parameter is to specify the user's prefered method for communication, it accepts zero to multiple values, and the acceptable values are:
*SMS: for notification via sms
*EM: for notification via email
*Create a web form for the "MyAppointment" with the following requirement:
*Use 3 radio buttons: for the surgery choice
*Use a text field: for the name of the user
*Use a text field: for the user's mobile phone number
*Use a text field: for the user's email
*Use a drop-down list: for the preferred time slot
*Use a text area: for the additional details
*Use 2 checkboxes: for the prefered method for communication
Notes:
单html做不到。。前台用到js
后台用到asp,php,asp.net.c#,cgi,其中一种都可以做到
有时间段预约用json处理还是不错的。
数据库也一样access,mysql,sqlserver等等都可以。
这个功能实现不难
有点考验英语阅读能力
考虑以下虚构的场景。
“我的预约”网站提供牙医预约安排。用户可以从3个手术中选择:“最佳北京”、“完美微笑利物浦”、“Shellharbour一名牙医”。要预约,用户需要提供姓名、电话、电子邮件和首选时间。webform还有一个文本区域,用户可以在其中包含详细信息(如果有)。此外,用户可以指示首选的通信方法(关于约会的提醒)。
后端服务正在运行http://myAppo.com.au/query并且它接受具有以下参数的GET请求:
*牙医:此参数用于指定用户的首选手术,可接受的值为:
*沃尔:为“最佳北京”
*丽芙:“完美微笑利物浦”
*shell:为“一位牙医Shellharbour”
*名称:此参数用于指定用户的名称;
*电话:此参数用于指定用户的手机号码;
*电子邮件:此参数用于指定用户的电子邮件;
*时间:此参数用于指定用户的首选时隙,可接受的值为:
1: 上午9点至10点
2: 上午10-11点
3: 下午12点至1点
4: 下午1-2点
5: 下午2-3点
*注:此参数用于指定其他详细信息;
*提醒:此参数用于指定用户首选的通信方式,它接受零到多个值,可接受的值为:
*短信:通过短信通知
*EM:通过电子邮件通知
*根据以下要求为“我的约会”创建web表单:
*使用3个单选按钮:用于手术选择
*使用文本字段:作为用户的名称
*使用文本字段:用于用户的手机号码
*使用文本字段:用于用户的电子邮件
*使用下拉列表:用于首选时隙
*使用文本区域:查看更多详细信息
*使用2个复选框:用于首选的通信方法
笔记:
webform有两个按钮:一个用于提交,另一个用于重置表单。
使用表格排列,使您的Web表单对用户来说看起来更美观。
您的Web表单必须明确指定正确的操作和方法。
您应该测试web表单,看看它是否向服务器提交了正确的参数和值。