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

We want a web development mentor, We want a Web Development Mentor I am ...

We want a Web Development Mentor I am seeking a tutor for web development. Seeking someone to meet three times a week for 60 minutes for a 1 to 2 month mentorship. The meetings

Need help in wordpress affiliate tracking, Wordpress Affiliate Tracking- Re...

Wordpress Affiliate Tracking- Recurring I am by means of Pay Pal recurring payments on Wordpress. I am having trouble finding as well as setting up the right Wordpress affiliate

I want to develop a discussion board and classifieds, I want to develop a D...

I want to develop a Discussion Board/Classifieds I'm seeking to create a discussion board/classifieds for the community I live in I do like to know what platform you'd use an

Web developer needed because current developer discontinued, Web Developer ...

Web Developer I have a website that I was functioning on with the developer for a very long time to build this site. They are no longer free/available to work on it and I really

We want help in codeignier script change easy, We want help in Codeignier S...

We want help in Codeignier Script Change Easy Project details as follow- To add three simple modifications for an existing CMS script. The script to alter is a modified version

I need help in website online designer work, I need help in Website Online ...

I need help in Website Online Designer Work I have a website that I paid to get done about three years ago and really have not been able to use it because it doesn't work proper

We are in need of wordpress expert, We are in need of Wordpress Expert I...

We are in need of Wordpress Expert I'm seeking wordpress expert that can done my website as well as mobile version in wordpress. Comprise all UI design and Google plus account.

Custom wordpress site dev and integration with custom data, Custom WordPres...

Custom WordPress site dev and integration with custom data-driven application We have an current site that has been built with native WP functionality. A modest WP user table

Need help in dashboard application development, Dashboard application We...

Dashboard application We're seeking to create a dashboard tracking application from various feeds job requires bit of research as well as knowledge of API's plus of course super

We need help in google maps page modification required, We need help in Goo...

We need help in Google Maps Page Modification Required I want a modification to a Google Maps Page. When the page returns the location address I need the user to be able to c

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