Create a web page that allow students to use external files, PHP Web Programming

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.
Posted Date: 4/2/2013 3:29:13 AM | Location : United States







Related Discussions:- Create a web page that allow students to use external files, Assignment Help, Ask Question on Create a web page that allow students to use external files, Get Answer, Expert's Help, Create a web page that allow students to use external files Discussions

Write discussion on Create a web page that allow students to use external files
Your posts are moderated
Related Questions
Need help to SocialEngine Install on Amazon AWS Seeking someone with experience and immediate availability to install, customize as well as administer Social Engine (SocialEngin

Easy Flash to HTML5 GAME Bug Fix, I will provide the source. Fix some bug Desired Skills are MySQL Administration, HTML, PHP

Prestashop Custom URL rewrite- repost I would like somewhat to automatically create custom URLs in my shop for guest wishlists using the wishlist owner's names I presently am us

Wordpress programming We are creative agency seeking a developer proficient in wordpress programming for our client, a real estate team. We need layout content by now complet

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.

Magento Expert wanted for a quick job at ALRUG.com We are working on a new website founded on Magento for ALRUG.com, which is now located at ALRUG.com/beta running on Magento Co

I want help in a WP Fatal Error: Out of Memory issues fixed I am getting the below error whenever I attempt to do anything on the website. I must it fixed soon. Must be super ea

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

I need help to Create splash page with paypal and aweber integration Create splash page with PayPal as well as aweber integration which has YouTube video auto playing at top the

Custom feed creation on wordpress Project Description: Want a custom rss creation, without being the default wordpress, rss can pull data from custom fields and categories, b