From the course: PHP for Web Designers

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Solution: Plan the order form

Solution: Plan the order form - PHP Tutorial

From the course: PHP for Web Designers

Start my 1-month free trial

Solution: Plan the order form

The challenge was to devise a plan for handling the data submitted by the Build a Bouquet page so that the details of the order are displayed correctly in the order confirmation page. This is the way it will work in the final version, so if I change Calla Lillies from Blush to Purple, and add three of those, and let's have, say, three sunflowers. And some gerberra daisies, orange. My color coordination may not be perfect, but never mind. And then add to basket. And all that will be displayed here are those items that have been ordered. The quantity, the cost, the shipping, and the total. So that's the ultimate aim. The first stage in dealing with any form is to find out what sort of data it submits. So let's go to our editing program. There's bouqet.php and I've scrolled it down to the bottom. There is the submit button. The name of the submit button on line 247 is bouquet. So, we can use that knowledge, to find out what is being submitted, from the form when we go to order.php. So…

Contents