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

Update php and html form, Update PHP / HTML form I need the HTML moderni...

Update PHP / HTML form I need the HTML modernized to HTML5. The customer likewise has to fill in a phone number and email address, else the form should not validate. As of

I desire php help for bilingual website, I desire PHP help for BILINGUAL WE...

I desire PHP help for BILINGUAL WEBSITE We are in desire of a bilingual website that will have an online store and information about the designer of the product. Our product is

What is $message and $$message in php, What is $message and $$message in PH...

What is $message and $$message in PHP. $message is a variable with a fixed name. $$message is a variable whose name is stored in $message. If $message comprise "var", $$mess

Need to code checkout and payment process on back end of web, Need to code ...

Need to code Checkout and Payment Process on Back End of Website I have a website that wants to have a checkout as well as payment process coded into the back end. The website i

Need help flash and audio streaming with recording, Flash and Audio Streami...

Flash and Audio Streaming with Recording I need to add audio streaming as well as recording feature to my chat application. This is additional feature. Chat application has b

Need help in website creation, Website creation - similar to seedrs.com cro...

Website creation - similar to seedrs.com crowd funding Looking to receive quotes as well as approximate time frame for the development of a website similar to Seedrs.com. Ope

Buddypress expert wanted for quick task, Buddypress Expert Wanted For Quick...

Buddypress Expert Wanted For Quick Task with Option of More Tasks This job is ONLY to upgrade Buddypress to current 1.9.1 version, without breaking current customization and mus

We are in need wix app build, We are in need Wix.com app build Build as ...

We are in need Wix.com app build Build as well as launch an app on wix.com to automatically display a catalogue from an xml file sent via an FTP. Desired Skills are MySQL Adm

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

We need help for website design to html, We need help for Website design to...

We need help for Website design to HTML We are in search of an experienced HTML Developer with bootstrap and responsive skills. Job Description: We need to create HTML pag

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