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
I need Creative Web Page Developer Project Description: I'm seeking a creative and skilled developer to assist in developing our web pages. Our pages aim a certain marked wit

I presently host my websites on Amazon EC2. I seem to be having several performance issues such as longer than expected loading times. My sites build with Wordpress. I use Cl

Need a programmer to help update our website. Long-term work available I have an independent that worked on my website as well as has done a great job up until now. He has lost

I need expert Wordpress Template Developer I have a website design I would like to turn into a wordpress template. Specifications- Responsive - One page - two scroll - Cou

Continuing Education Website We will be selecting an expert within a week if one meets our needs. Work with databases: php/mysql

In the form of hypermedia documents, Web pages or materials accessed by the Internet can be located anywhere in the world. Regardless of where they originated, most of the Web d

We are in need of JavaScript programmer We want a JavaScript based program to communicate with a digital sensor and memory system via Bluetooth. Programmer must as well be able

Simple user friendly webpage that will replace a hotel reception on a basic scale for normal check-ins and check outs. Hotel Software experience a vital part. To chiefly buil

Question: 1. What is the name of the programming /scripting language of Flash? 2. Which HTML tag can be used to insert a Flash movie in a web page? 3. While working wi

Need help in Creating forms in Atlassian Confluence We have installed Confluence and now to create some checklists and forms that our team can complete when working with clients