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

Shopping Cart, Shopping Cart Purpose – Allows user to browse while keeping ...

Shopping Cart Purpose – Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for al

I am seeking some software to be written to permit, Venue Bookings Manager ...

Venue Bookings Manager EoI I am seeking some software to be written to permit me to take, and manage bookings for an athletics track. This will be related in to an existing webs

Label, , an HTML 4.0 element supported through MSIE & Netscape 6, describe ...

, an HTML 4.0 element supported through MSIE & Netscape 6, describe a set of text that is linked with a specific form element. For instance, the code below specifies t

A php and ecommerce expert needed, A PHP/eCommerce Expert Needed Descrip...

A PHP/eCommerce Expert Needed Description- This is aid with an ecommerce site using Balanced payments API. There is as well certain low level PHP that will need to be done. T

Php, Ask question #Create a Web page to be used for storing software develo...

Ask question #Create a Web page to be used for storing software development bug reports in a MySQL database. Include fields such as product name and version, type of hardware, oper

Develop a bilingual website that will have an online store, Develop a bilin...

Develop a bilingual website that will have an online store and information about the designer of the product. Our product is glass blown merchandise and art. Job description:

Data link layer - osi model layer, It is responsible for transmitting a gro...

It is responsible for transmitting a group of bits among the adjacent nodes. The group of bits is termed as frame. The network layer passes a data unit to the data link layer and d

Move a layout cell, If you have to line up the cells next to each other you...

If you have to line up the cells next to each other you can resize & move the layout cells as you required. You can alter the size of a layout cell using one of its resize handles.

Web developer with cms applications, Web Developer a) Intermediate to ad...

Web Developer a) Intermediate to advanced skill level with WordPress (Essential) and some experience working with leading CMS applications. b) Strong knowledge of Classic ASP

We want an experienced programmer to write a script, Web programmer We w...

Web programmer We want to allow logging on an S3 bucket to audit potential high usage from single users (example single IP addresses) on our Wordpress membership site. We wan

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