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

I need ecommerce developer using html5, I need Ecommerce Developer using HT...

I need Ecommerce Developer using HTML5, PHP, MySQL, CSS, JS I need a web developer for my ecommerce team. Your job is to develop extensions, plugins and themes for online shops

A web application of shopping cart using php, You are required to implement...

You are required to implement a shopping cart web using PHP. The web application should allow the user to view the items in a catalogue, add items to a shopping cart, remove items

Make a page with a form which can be submitted on our phpbb, Make a page wi...

Make a page with a form which can be submitted on our Phpbb forum We consists a website with a Phpbb forum on it and we want to have a page created on the forum where people tha

Need help in ruby or python developer, Need help in Ruby or Python develope...

Need help in Ruby or Python developer with knowledge of MySQL and AWS for proof of concept Needs description our start up is in search of a back-end developer to create a min

Thead - tbody - tfoot, mentions that a group of rows are the header rows at...

mentions that a group of rows are the header rows at the top of the table. specify that a group of rows are body rows. specify that a grou

Function to calculate the total cost field function, Order Form // f...

Order Form // function to calculate the total cost field function Total() { var tot = 0; tot += (2

A computer/website programmer, A computer/website programmer I am in sea...

A computer/website programmer I am in search of a professional to make me a website on which I could sell computer programs through credit or debit card and as well sell physica

We need joomla-php-mysql developer, We Need Joomla-PHP-MySQL Developer W...

We Need Joomla-PHP-MySQL Developer We need a developer who can work on our website built on Joomla to focus. Candidate must be very strong in Joomla, PHP, MySQL Development.

We want a coder for magento, Magento 2 installation We want a coder that...

Magento 2 installation We want a coder that has already installed the last Magento 2 installation Zip file so can help us to understand how to do it on our server. Desired Sk

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