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

Crud application criteria, CRUD application criteria -Use a proper data...

CRUD application criteria -Use a proper data model, this means using Object Oriented PHP if you choose PHP -This model should have around 6-8 properties -The model should

I want a high quality website for apartment rental, Apartment Rental Websit...

Apartment Rental Website I want a high quality website designed for use in rental real estate. The site will be a professional advertising tool that entices new tenants to college

Custom wordpress site dev and integration with custom data, Custom WordPres...

Custom WordPress site dev and integration with custom data-driven application We have an current site that has been built with native WP functionality. A modest WP user table

Need a expert to check cookie tracking on our site, Check cookie tracking o...

Check cookie tracking on our site We have influence radius (affiliate tracking) as well as we have people sending us traffic and conversions. We want someone to check as well as

Xenforo add-on required, Project Description: I am seeking an add-on to ...

Project Description: I am seeking an add-on to be coded for the Xenforo forum software. The add-on would be a post pruning system that will be customized on a per-forum level. I

We need drupal updates, We need Drupal Updates We have 6 websites built ...

We need Drupal Updates We have 6 websites built on the Drupal platform that essentially updating from v.6 to v.7. We need a Drupal developer to help us update as well as test ea

Seeking talented opencart developer, Seeking talented OpenCart Developer ...

Seeking talented OpenCart Developer We have an by now existing OpenCart 1.5.1 site that wants some updates. a) We have a core file that is generating dumps which needs to be

What are the steps involved to run php, What are the steps involved to run ...

What are the steps involved to run PHP? The steps that are involved and required to run PHP is as follows: 1. Set up web environment. 2. Set up web servers. There are man

I need help to create splash page with paypal, I need help to Create splash...

I need help to Create splash page with paypal and aweber integration Create splash page with PayPal as well as aweber integration which has YouTube video auto playing at top the

Create an html document, An HTML document may be created via any HTML edito...

An HTML document may be created via any HTML editor or text editor such as notepad etc. STEPS FOR CREATING A SIMPLE HTML PROGRAM 1) Go to Start -> Pro

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