Discuss the purpose of the php procedures

Assignment Help Basic Computer Science
Reference no: EM13845481

InAssignment One, you set up the basic design of the site, now you must expand the functionality of the site by adding PHP scripts.

Design

All new pages created for this assignment must conform to the design criterion you established forAssignment One.

All the pages you created in Assignment One should also be present in Assignment Two not just the new pages or modified pages.

Required Tasks and Elements

Assignment 1 Concepts

Marks will be deducted for failure to adhere to the concepts already marked in Assignment One. E.g.,

·Pay attention to your PHP coding style, e.g., your code should:

Be simple and elegant,

Be documented, e.g., comments at top of each document and on major sections,

Use appropriate variable/types names,

Use an appropriate layout, e.g., consistent indentation and use of white space.

Appropriately structured, modular, reusable etc.

·Pay attention to the coding style of any new, modified or "PHP generated" XHTML or CSS files (as detailed in Assignment One).

·All new pages created for this assignment, and that includes dynamic pages created by PHP scripts must be in the same design style as all the pages inAssignment One

·This assignment must work on a Debian GNU/Linux machine running Firefox or a Firefox clone.

·Your PHP scripts must work using the supplied version of PHP-the supplied version of PHP does not have any extra modules compiled in-it is the vanilla PHP with the calendar module only.

·All URLs must work and be relative.

·Use CSS not XHTML attributes for presentation and style.

·All pages produced should be valid XHTML.

Conference Registration Page

Modify your Assignment One to add a new section: a registration section that allows a person to register for the conference.

·Create a directory called registration. All files for registration should be placed in this directory.

·Create a static XHTML page for conference registration and place the page in the registration directory.

·Add appropriate links to this page on your site.

·The registration page is a form that asks the participant for his or her registration details. Information required for conference registration will be:

Full Name

Contact Email Address

Name of the Person's Institution

Credit Card type

Credit Card Number

Expiry Date of Credit Card

·Use the appropriate XHTML INPUT types. The TEXT input type is not the most appropriate type in all cases.

·The POST method should be used to send the data to the script that will process the data.

·Input error checking must be done by the script. (But do not worry about validating the Credit Card number- to do that properly you would have to calculate the checksum using the Luhn Algorithm)

·One script will be written that will take the information from the page and append it to a CSV (Comma Separated Values - seethe note at the end) text file. One registered participant per line. The text file and the script should reside in the registration directory with the

Forms page.

·The payment data file should be password protected from download. The username/password pair that should be used to protect the file should be `payments/1234'. For this assignment place the password file in the registration directory. This file should also be protected from accidental or malicious download by anyone by the appropriate configuration directives.

·If the registration information is accepted a polite message should be returned to the client telling them they have successfully registered.

·If the registration is not accepted an informative error message must be supplied explaining why it has not been accepted.
Paper abstract submission and listing page.

A page to list all the papers to be presented or submit a title and abstract of a paper to be presented.

·Create a directory called papers. All files for this section are to be placed in this directory.

·Create one PHP script to dynamically display papers or accept papers.

·Add appropriate links to this script on your site.

·Everything following is to be dynamically created by one PHP script.

Script details

·Without input the script should display a default page that offers two choices:

A button or link to list all the titles and authors of all the currently submitted papers and
a form for paper title and abstract submission.

·Submission Option on the default page:
The title and abstract submission form on the default submission page should have three fields

A field to enter the names of all of the authors.

A field to enter the name of the principal author. This is the person who will be presenting the paper at the conference. The principal author's name should be one of the names in the first field.

Field to enter the contact email address of the principal author.

Field to enter the title of the paper.

A text-area to enter the abstract of the paper.

The POST method should be used to send the data to the script.

The script will accept the form information and write the abstract of the paper to a text file. One file - one abstract. The name of the file must be unique (See Notes at end). The remaining information will be appended to a CVS text file. Each line of the file will contain the principal author, contact email-address, the authors, the title and the name of the file containing the abstract.
Only people who have been registered for the conference should be allowed to present a paper. If the principal author has not registered for the conference the script should not accept the submission, return a polite message and a link to the registration page.
Use the email address of the principal author to check if the principal author exists in the registration file.

Input error checking must be done by the PHP script.

·List Option on the default submission page:

When this option is selected from the default page the script should list the authors and titles of all the accepted papers.

Each listed paper should have a link to the abstract of that paper.

If the abstract link is selected then the script will display ALL the information about that one paper. That is - the principal author, the authors, the title and the abstract.

The GET method should be used to tell the script which paper to display.

Documentation

·Discuss the purpose of the PHP procedures that you have written.

·Include links in your site-map documentation to all (non-XHTML) source code files, e.g., PHP, CSS.

Note:

Error Checking

·Your scripts should check all input for validity.

·List your checks in the site-map documentation.

Reference no: EM13845481

Questions Cloud

Discuss how to minimize the problems of fatigue : Discuss how to minimize the problems of fatigue, boredom, or practice effects in within-subject designs. It doesn''t have to be long, about 150 words. Brief, but complete.
Describe the experiential learning process that companies : What perceptual problems do managers need to overcome with failures? How can these perceptual problems be minimized? Describe the experiential learning process that companies, mentioned in this case study, apply to learn from their mistakes and failu..
Define the tragedy of commons metaphor : The Tragedy of Commons metaphor. In your opinion, why do public subsidy programs often exceed original estimates Do you have any suggestions for not exceeding original estimates
Create an effective and innovative campaign strategy : Create an effective and innovative campaign strategy that addresses the "problem/issue/desires" of the advertiser and the employment of techniques to connect to a target audience.
Discuss the purpose of the php procedures : If the abstract link is selected then the script will display ALL the information about that one paper. That is - the principal author, the authors, the title and the abstract.
Why is change so difficult to implement in organizations : Why is "change" so difficult to implement in organizations? Have you ever had to change your attitude to fit an organizational environment? What was the impact?
Will the two-tier wage structure go away in the near future : Will the two-tier wage structure go away in the near future? Summarize the pressures to eliminate it as well as the pressures to keep it. Be sure to consider labor costs and productivity of workers and plants at other companies and in other parts of ..
Explain patriot act and the national homeland security act : Make sure to interconnect national security laws such as the Patriot Act and the National Homeland Security Act. Please be specific in your defense of your selection. Include what the role of government is regarding the protection of majority an..
To what extent do these individuals have a moral obligation : To what extent do these individuals have a moral obligation to keep the personal information of their loved ones private, even when that means compromising their ability to best do their jobs

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How frequently should run maintenance on equipment

With one network operating system (NOS) running on routers and switches, there can be elimination of third party vendors which service. So actually how frequently would they require to run maintenance on their equipment?

  Difference between value type and reference

Difference between value type and reference type arguments in c#

  What are the advantages of flash memory

What are the advantages of flash memory over hard disk storage? What are the advantages of hard disk over flash memory storage

  Instructions must execute in a single clock

An implementation where every instruction executes in 1 clock cycle using a variable length clock, which for each instruction is only as long as it needs to be. (Such an approach is not terribly practical, but it will allow us to see what is being sa..

  Write a condition to test

write a condition to test if the point is outside the rectangle. Assume that x increases to the right and that y increases to the top.

  Airline business upgraded to the same application

Few things in the airline business are more daunt-ing than upgrading to a new reservations system. Do it well, and customers are none the wiser; mess it up, and a carrier risks losing customers and tarnishing its brand. Discount carriers JetBlue A..

  Purpose and goals of the mobile self-service

Elaborate on the guidelines for how the self-service Website can be kept current as newer mobile devices are being introduced at a rapid rate and the design of the Website for mobile devices and the interfaces that are applicable to the mobile devic..

  A static method that takes an array of integers as parameter

Write a static method that takes an array of integers as a parameter and returns back an integer that is the sum of all of the integers in the array.

  Define get the survey title the overload constructor

When I compile to get the survey title the overload constructor asks for title name input else the default constructor sets a default name. My code ask for the title and after I enter it hangs until I enter it again

  Write a plan for analysis and design of an e-commerce site

Write a plan for the analysis and design of an e-commerce site recommending which aspects of process and data analysis should be conducted and explaining how they should be integrated.

  Explain bec corporate is department

If you were the system analyst in BEC corporate IS department and you had recieved call from Carrie douglas about her Project idea,what would you suggest to Carrie?

  Review and discuss methods for it managers to maintain

Review and discuss methods for IT managers to maintain their skills while gaining new managerial skills

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd