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

World wide web, The World Wide Web is defined as a "wide area hypermedia in...

The World Wide Web is defined as a "wide area hypermedia information initiative amongst to provide universal access to big universe of documents". World Wide Web gives users on com

I need a help in css responsive site, I need a help in CSS responsive site ...

I need a help in CSS responsive site CSS responsive to convert site in to responsive Job Description- I have some web sites which want attention and I would like to work o

Need help in wordpress website migration and move, Wordpress website migrat...

Wordpress website migration / move We have a word press site that is not working with the duplicator plugin. We just want it shifting across to some new hosting. Must just

Need help to add additional fields to a form wordpress, Need help to Add Ad...

Need help to Add Additional Fields to a Form wordpress I would like to add additional fields to an existing form. This person should have php and wordpress knowledge. I am utili

Need to know php as well as mysql and be able to debug, Update PHP code to ...

Update PHP code to work with 5.4+ Need to know PHP as well as MySQL and be able to debug and solve errors. We have an old CRM engine developed back in '06/07 as well as no lo

I need help to make a clone of website, I need help to make a Clone of webs...

I need help to make a Clone of website - Database and web programming a) Change to the subject matter b) A beautiful design, c) A certification program (Users will upload

Seeking a team to build advanced website, Seeking a team to build advanced ...

Seeking a team to build advanced website with two web applications Seeking an experienced team to build a state of the art website for my hair company that comprises two applica

Unordered lists, First one, we will create an unordered list. These lists a...

First one, we will create an unordered list. These lists are also called as bulleted lists. These lists are characterized through list items that do not have numbers. They are used

Need long-term php developer for e-commerce product, Need Long-term PHP dev...

Need Long-term PHP developer for e-commerce product I'm seeking to work with a PHP developer in the UK who has experience working with custom software such as e-commerce product

Wordpress plugin wp-pro-quiz desires some modifications, Wp-Pro-Quiz plugin...

Wp-Pro-Quiz plugin modification Wordpress plugin wp-pro-quiz desires some modifications. JavaScript, php, WP. I've got quiz as well as I need following modifications: 1. Q

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