Some Work
Since Darren is content spending time in the studio, we’ve been getting some work done as well as some sight seeing. I nutted out this web-form (obviously the real pricing has been replaced with random figures) for ecopeko wholesale orders. It may not look like much, but if you view the source you’ll see just how much code goes into making such a thing work. And that doesn’t even include the additional php file that takes all the data, cleans it up and sends it to an email address in a presentable format.
It was a good learning experience, and I think I managed to make it idiot-proof enough without going overboard. You could still enter “7″ for your name for example, but I made the phone number and email address restrictions a little tighter.
There are a bunch of other checks running behind the scenes to prevent alphas in the quantity fields, decimal points where they shouldn’t be and so on. Form submission is also prevented until all required fields are completed.
On the email processing side I added functions to remove all zero fields, sort the data in a sensible order and split it in to sections with headers (“Contact Details”, “Shipping Address” and “Order Details”), so that the order confirmation is as neat as possible.
I’ve also got a start on the Aarfie web site. Here’s how the front page is looking at the minute.













