From the course: PHP for Web Designers

Unlock the full course today

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

Challenge: Plan the order form

Challenge: Plan the order form - PHP Tutorial

From the course: PHP for Web Designers

Start my 1-month free trial

Challenge: Plan the order form

The build of a page in the Hansel and Petal website contains a complex online form that invites customers to select flowers to create a custom bouquet. Some flowers like color lilies have a select drop down menu with a choice of colors and when you change the color, the image changes and you can update the quantity. Let's have three color lilies and let's say three sunflowers. And at the bottom of the page, the amount has been updated. All of this is controlled by JavaScript. And when the customer has finished selecting flowers, clicking the Add to Basket button loads order.php. Where the details of the order need to be displayed. At the moment, the page consists of hard coded html. So, let's see what the challenge is. Let's take a sneak peek at the final version of the site. So here we are in the Build a Bouquet page, I'm going to select some yellow color lillies, let's say have three of those. And we'll have four sunflowers maybe and a few irises. And it tells me at the bottom of…

Contents