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

Need php help to fix oscommerce attribute price problem, Need help to Fix o...

Need help to Fix oscommerce attribute price problem I want the customer to be able to choose a quantity of any product on my oscommerce website. For example a product cost $10.

Fashion content website that must operate under styles, WP - custom Theme ...

WP - custom Theme The website is a fashion content website that must operate under Styles categories (chic, casual, street etc) where each style will have content associated to

Nested list, 1. Develop a Web page, indicating an ordered list of the names...

1. Develop a Web page, indicating an ordered list of the names of your five friends. 2. Develop an HTML document with a nested list indicating the content page of any book 3.

We want a wordpress web developer and content manager, We want a WordPress ...

We want a WordPress Web Developer and Content Manager We are running a services business teaching children to swim. Our website is built using WordPress. The developer who built

Want javascript expert, Want JavaScript expert I need JavaScript expert ...

Want JavaScript expert I need JavaScript expert for urgent job please. A plugin in wordpress wont work due to a js file being called that shouldn't be. Quick fix needed Desir

We need a wordpress theme development with visual composer, We need a Wordp...

We need a Wordpress Theme Development with visual composer We are in search of a WordPress Theme Developer with extraordinary skills on PHP and theme programming to realize a we

Html password field, How do you define an HTML password field? Use type ...

How do you define an HTML password field? Use type = password for the form element. This provides a minimal level of visual privacy but the text is submitted in plain text.

In search of a developer team to build advanced website, In search of a dev...

In search of a developer team to build advanced website with two web applications In search of an experienced team to build a state of the art website for my hair company that i

Need help to merge a plugin with a wordpress theme, Merge a plugin with a W...

Merge a plugin with a Wordpress theme I need to make plugins to work on theme as well I want to be able to use some of the extra plugins on the premium press theme. Desired S

Need help to set ogone payment module for magento shop, Set Ogone payment m...

Set Ogone payment module for magento shop Seeking a magento developer who can set the Payment settings for a Magento store client of us. And likewise fix some other issues fo

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