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

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.
Posted Date: 4/2/2013 3:29:13 AM | Location : United States

Related Discussions:- Create a web page that allow students to use external files, Assignment Help, Ask Question on Create a web page that allow students to use external files, Get Answer, Expert's Help, Create a web page that allow students to use external files Discussions

Write discussion on Create a web page that allow students to use external files
Your posts are moderated
Related Questions
Magneto Development - Changes to a custom module We are consist an Instagram image upload module built for our Magneto based website. The developer of this module is no longe

Looking to prepare a few custom post types, approval processes, user registration types reports/analytics in a custom WordPress application. It's not a rapid job, there's quite

Magento Dynamic png image generation for a vinyl lettering website I need to create dynamic png image generation for a vinyl lettering website. Requirements- 1) Dynamicall

I need help in ERP/Manufacturing Website Seeking an internal-use ERP/Manufacturing Website developed for use at a Paper Mill. Modules/areas would comprising Customers, Sales Ord

PHP Developer Needed for Google Rank Checker and Customer Portal Hired preceding developers and they did terrible work, We worked an great amount of hours and the money was wast

I need help to create Facebook Login for BigCommerce I'm seeking to create an app for Big Commerce to permit Facebook Login with the expectation this will grow to allow others s

FTP understands two basic file formats only. It classifies every file either a binary file or a text file. A text file has a sequence of characters gather into lines. Though comput

Development of ecommerce store in cakephp Project Description: We want to get help finishing off a project based in cakephp (because we don't have time). Things that would re

Need a developer to create web-based service I am seeking a developer to build a website that will provide users with an online business service. I will provide wireframes of th

PSD to Responsive HTML5 / CSS3 I want someone who can offer a rapid reversal on this project. We will provide you with the full PSD file we will need you to create a five pag