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

Tcp - ip networking model, This is an acronym for Transmission Control Prot...

This is an acronym for Transmission Control Protocol / Internet Protocol. This is a collection of applications, protocols and services. TCP/IP protocol was developed prior to the O

Add function in web app, Add function in web app Project Description: ...

Add function in web app Project Description: I buy simple web app from code canyon and i want to add one function to this app i want it in As soon as. Skills required are

Need help likenet upgrade - user shopping mall, Likenet upgrade - user shop...

Likenet upgrade - user shopping mall Likenet Upgrade - User auction/shopping mall A woocommerce mall simply like the auction site your building. Part of the likenet interf

File transfer protocol, FTP (File Transfer Protocol), a standard Internet p...

FTP (File Transfer Protocol), a standard Internet protocol, is the simplest way to exchange files among computers on the Internet. Similar with the Hypertext Transfer Protocol (Hyp

I need wp estore theme experienced developer, I need WP Estore Theme Experi...

I need WP Estore Theme Experienced Developer Maintenance work on word press estore theme website required. Should have previous proven experience with wp estore theme. Pro

Web based program developed with microsoft sql server, We have a web based ...

We have a web based program developed with Microsoft SQL Server and .NET C#. There are some reports requires to be created. Required Skills are Strong Knowledge in MS SQL Ser

I want a python developer for web application, Python developer for web app...

Python developer for web application We are a US based starting with a live web app developed using great Python web MVC framework. The current code base was written by a senior

I want ecommerce website and ecommerce developer, Ecommerce website need a ...

Ecommerce website need a ecommerce developer Please note that we would like detailed information on the following: a) Proposal of Services b) Build Requirements c) Proc

Radio button, Radio buttons are used while only one out of the group of cho...

Radio buttons are used while only one out of the group of choice is to be selected. In the example code we have put a line break after every button. Each of the Radio Buttons ha

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