Creating an Ajax Form

Ajax Contact FormWhen creating forms that need to be validated against a user's input, you can either validate on the client-side (Javascript), or the server-side (PHP in this case).
But if you want to use Javascript, then someone with Javascript turned off could easily submit the form and bypass all validation.

That's where AJAX comes in. You do all the validation on the server-side, but return the results back to the user with Javascript and no page refreshes. It's really the best of both worlds. Plus it degrades good enough if someone has Javascript disabled.


Creating & Sending an HTML Email with a Dynamic PDF Attachment

This tutorial will explain how to get the data from a submitted form, create a PDF from that data, and then attach that PDF to an HTML email and finally send it. We will be using dompdf for the PDF generation, and Swift Mailer for sending the email.


New Website!

Well, after a few months of working hard on my new site, it's finally up and ready to go!

This will be a place for me to showcase my work and also to write about things I'm thinking about. I'll be posting articles and tutorials about web & graphic design, photography, HTML, PHP, Javascript, MySQL, CSS, and anything else I have going on in my mind.

If you find this site interesting, you can subscribe to the RSS feed by clicking the RSS button in your browsers location bar.

The site's hand-coded on top of the Kohana PHP Framework. Kohana made creating the site a breeze. Be sure to check it out if your interested in a great PHP framework.