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 need help to develop wordpress plugin/ widget, We need help to develop W...

We need help to develop Wordpress Plugin/ Widget Need Somebody that can build a Wordpress Widget or Plugin API Develop using ruby, perl, php, java, JavaScript or python. Desi

Simple website development with affiliate features, Simple website developm...

Simple website development with affiliate features I want to create quite simple website that would refer to other websites in order to benefit from their affiliate programs (af

Alert boxes, This boxes can be utilized for variety of things, for example ...

This boxes can be utilized for variety of things, for example to display while an input field has not been properly entered, to display a message onto document open or close, or to

Experienced php and ruby on rails programmer required, Experienced PHP and ...

Experienced PHP and Ruby on Rails Programmer Required We have a requirement of Experienced and dynamic PHP and Ruby on Rails developer who can work in PHP 3rd party APIS and can

Needed mobile wordpress expert, Mobile Wordpress Expert Seeking a person...

Mobile Wordpress Expert Seeking a person that is very good at installing wordpress themes from themeforest and making sure that they look GREAT on Mobile Devices. Please disp

Web site in psd besides need it coded in html 5, HTML5 Web Site We have ...

HTML5 Web Site We have a web site in PSD besides need it coded in HTML 5 and CSS3 and put on our domain. 8 pages - 2 lightboxes - 3 forms We have a PSD required to be code

I need ecommerce developer using html5, I need Ecommerce Developer using HT...

I need Ecommerce Developer using HTML5, PHP, MySQL, CSS, JS I need a web developer for my ecommerce team. Your job is to develop extensions, plugins and themes for online shops

Advanced topics of html, In this unit we have study some significant and ad...

In this unit we have study some significant and advanced topics of HTML. Now you have to be able to develop interactive Web pages also. We have discussed ways of connecting to dist

We need a website developer, We need a Website developer A luxury swimwe...

We need a Website developer A luxury swimwear brand is seeking a website developer to create an e-commerce website as well as mobile version. We need somebody who can host our d

Need help to edits to zen cart website, Edits to our Zen Cart website We...

Edits to our Zen Cart website We would like to rental a developer to make the following adjustments to our Zen Cart 1.5.x online store 1) Featured Products on Main Page Ha

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