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

What is the difference between print and printf(), What is the difference b...

What is the difference between echo, print and printf()? Echo is the basic type used to print out a string. It just illustrates the content of message written using it. It can

Internet, The Internet is worldwide computer network which interconnects, m...

The Internet is worldwide computer network which interconnects, millions of computing devices all through the world. Mostly devices are PC's, and servers which store & transmit inf

Needed web designer and web professional, Web Designer and Web Professional...

Web Designer and Web Professional I have a current small business website as well as need help changing it so that people can access it from a smart phone and so on. Flash, perh

Create a parser to import goods from the website, Parser and website (prest...

Parser and website (prestashop, magento) Project Description: 1. Create a parser to import goods from the website in wordpress (product photos, product name, product, commodi

I need a help to create wp custom application development, I need a help to...

I need a help to create WP custom application development Looking to create a few approval processes, custom post types, user registration types, reports and analytics in a cust

Create a connection string to connect to database, Question: (a) What ...

Question: (a) What will be the output of the following extract codes? Describe fully how the program operates. $states_of_the_USA = array (1 => "Alabama", "Alaska", "Arizo

Web site project, Throughout the term you will be designing and creating a ...

Throughout the term you will be designing and creating a web site that you will submit during the final week of the course. The weekly assignments will help you develop the skills

Software development, Software development Project Description: We wa...

Software development Project Description: We want experienced programmer to write a software for us. Software nature - Chat software - VoIP technology- social networking

We are in need of help in turnkey site development, We are in need of help ...

We are in need of help in TurnKey Site Development Our company had a web site skilfully created in PSD. We want a developer to turn the site from PSD files to HTML/CSS/JavaScrip

I need help in designing a website, I need help in designing a website I...

I need help in designing a website I want a website for tourism that make people book from my website. I will merely get commission from the website from the adverts the website

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