Andy Burgess - 2015-09-22 12:51:23
Thanks for posting this tutorial. I was very helpful to me as I've been working on something similar, and wanted to see how someone else had done it.
Although we've both done it differently, I really like your method, and indeed I've learnt a thing or two, too!
I did find a couple of bugs in your code (in part 2):
<form action="/confirm.php" method="post">
should be
<form action="/order.php" method="post">
.... and ....
$statement = $dbConnection->prepare( "insert into order( name, email, total) value(?, ?, ?)" );
should be
$statement = $dbConnection->prepare( "insert into `order`( name, email, total) value(?, ?, ?)" );
i.e. "order" backticked
HTH, and thanks again.
Cheers
Andy Burgess