you’re on your way 4
303
post requests
Make sure you’ve taken care of everything in the Just Do It exercise on page 299,
and then load pizza.html in your web browser. Go ahead and enter a phone
number, and while the server is lling in your address, enter in a pizza order. Click
the “Order Pizza” button, and see what happens.
Trying out POST requests
Q:
I tried pizza.html on Safari, and it worked just fine. Is
there something wrong (or right) with my code?
a: No. Safari tends to do a few things that make a POST
request work without a few of the extra steps you need to take
for most other browsers. The POST version of Break Neck fails
on Internet Explorer, Opera, and Firefox, so we definitely need to
figure out what’s going on, and fix the Break Neck app.
questions
Frequently asked
?
Uh oh... the placeOrder.php
script is reporting an error.
Somehow the customer’s
order didn’t get through.