Create a web page that allow students to use external files, PHP Web Programming

Assignment Help:

The purpose of this exericse is to allow students to practice using external files in support of web applications. For this exercise, imagine that the Batty League Flea Market accepts orders over the Internet. The web site will receive the order, then will display a confirmation web page. (NOTE: The site should probably do some other things, like notify the operator of the flea market and send a confirmation email to the buyer. For this assignment, though, you will concentrate on the web confirmation.)

  • Create an ordinary text file named [lastname]-week-7-lab.txt. In that file enter text, including HTML tags, which will display information about the purchase.
  • NOTE: This text will eventually be inserted into the XHTML portion of your PHP script, so include HTML tags to format the text in an appropriate way. However, do not include the header tags - treat the text in this document as the body of the page, rather than the entire thing.
  • NOTE: Give some substance to your web page: "Congratulations! You have purchased . . . thank you for helping . . .". Use your imagination and write a decent web page.
  • Within the web page, use the special text string [ITEM] to mark the place where the string identifying the item should be included. Use the special string [PRICE] to mark the location where the price of the item should be placed.
  • Create an input form named [lastname]-week-7-lab.html which will ask the visitor to enter the inventory ID number of the item which is being purchased, and the price which is to be paid.
  • NOTE: Naturally you would not usually allow the visitor to enter the price - eventually, you would build up this application so that it read that information from the database.
  • Within the script [lastname]-week-7-lab.php, add instructions which will open the text file you have created for the web page and read its contents into a variable named $pageBody.
  • Use the str_replace() function to replace the special strings [ITEM] and [PRICE] with appropriate pieces of information.
  • Display the resulting web page.

Related Discussions:- Create a web page that allow students to use external files

Insert text in cells, In Dreamweaver, you may directly type content into a ...

In Dreamweaver, you may directly type content into a layout cell, or you can cut & paste content from another document in a layout cell. In this unit, you will insert text to the l

Bowline website for it security company, Bowline Website I do like to ha...

Bowline Website I do like to have a website created for my company. It is an IT Security Company. The target spectators is in Africa. I am seeking at about 25 pages to be develo

Need nationbuilder developer, NationBuilder Developer We are seeking a l...

NationBuilder Developer We are seeking a long term NationBuilder developer to help us at our agency we produce websites for churches as well as nonprofits on the NB platform as

Session layer of osi model, Session layer: the major functions of this lay...

Session layer: the major functions of this layer are to establish, maintain & synchronize the interaction among two communication hosts. It ensures that once a session is establis

Need help in install wordpress from back-up, Install Wordpress from back-up...

Install Wordpress from back-up I have my back-up for my Wordpress. I want someone who can fix this as well as put my website back online. Desired Skills are MySQL Administrat

We want a talented team to make a specific mobile app, Tailor made app user...

Tailor made app user tracking tool We want a talented team to make a specific mobile app tracking tool to track all events for each of our clients inside our app. You should hav

Wordpress admin/programmer needed, WordPress Admin/Programmer In order t...

WordPress Admin/Programmer In order to participate please answer to the following questions- 1) What is a child theme? 2) When do you use a child theme? 3) Please give

Php, want to learn php

want to learn php

Describe two types of looping statements in php, Question: (a) Describe...

Question: (a) Describe the two methods used to retrieve information from web forms using PHP. (b) Explain two different kinds of arrays that PHP uses. Give an example scri

Design and implement a frame-based personal web page, Design and implement ...

Design and implement a frame-based personal Web page. Include everything that you would like to share with your friends. This must include but not limited to: A short biogra

Write Your Message!

Captcha
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