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 help in wordpress plugin customization, WordPress Plugin customizati...

WordPress Plugin customization I want customization of the Sabai directory plugin: a) Allow to create custom fields that will show up in the listing instead- Twitter Facebook

I want html/css/js of a new website from design files, I want HTML/CSS/JS o...

I want HTML/CSS/JS of a new website from design files I have several artwork that I created to my company's new website however we are really busy here right now as well as we w

Psd to pure html5 tweaks on already designed site, PSD to Pure HTML5 Tweaks...

PSD to Pure HTML5 Tweaks on already designed site I have HTML previously converted just have to fix design. Its a few hours job for you as well as only good HTML5 developers are

Need help for telerik controls integration into ie8, Need help for Telerik ...

Need help for Telerik Controls Integration into IE8 We are in search of an experts at integration telerik controls into IE8. We have experienced a few issues as well as we would

Explain pass by-reference, The expressions can be passed as pass by-referen...

The expressions can be passed as pass by-reference arguments or only variables can be passed? Only variables can be passed as pass by-reference.

Business starter website needs to grow up a little need help, My business' ...

My business' starter website needs to grow up a little The site was completely homemade when I started my business last year. While it's visually striking, the way it was constr

Need a wordpress expert, Need a Wordpress expert We're seeking a talente...

Need a Wordpress expert We're seeking a talented well experience Wordpress expert with strong PHP skills to build a website with integration with Salesforce and an advanced even

Develop and design a fully functioning website, Develop and design a fully ...

Develop and design a fully functioning website. The Company: We are a forward thinking, innovative and creative industrial design company. (not web design company!) We design

Need web scrapers for websites, Need web scrapers for 5-6 websites I wan...

Need web scrapers for 5-6 websites I want web scrapers for 5-6 websites in PHP. They will scrape certain pages as well as log the data in MYSQL DB. I want someone who can del

Authenticate the name and password, Keep a list of allowed reporters and th...

Keep a list of allowed reporters and their passwords in a database table Authentication .  Define and populate the table beforehand manually using the phpMyAdmin interface to MySQ

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