Checking for Form Submissions in PHP
One important topic in PHP is how to know when to handle a form’s submission. If you have two pages–page.html and handle_page.php–the assumption is that whenever handle_page.php is accessed, it’s handling a form. This may not always be true, but is a reasonable enough assumption. However, more commonly the same page is used to both display and handle an HTML form. In such situations, that page is being accessed twice: once when the form is loaded and a second time when the form is submitted back to this same form. The trick is being able to identify which stage the page is in. (continue reading…)
About This Blog
When I was at Microsoft’s Redmond headquarters back in May 2004 (an event I’ll write about retroactively in time), I saw one of the fellow attendees updating their blog. I remember thinking how silly it seemed: who really wants to read every little thing that a stranger writes? Coupled with my innate aversion to anything popular (I was already sick of hearing about podcasts in June 2005), I never thought I’d find myself writing a blog. In fact, when I began producing a newsletter in the Summer of 2007, I was asked why I wasn’t doing a blog instead. In part, I wanted to do a newsletter so that people would immediately receive whatever I wrote without having to repeatedly check my Web site. But I have found that a newsletter also has its downsides:
- I put so much pressure on myself for turning out a solid, well-written newsletter, that I’m lucky to get one out each month.
- Newsletters are not as conducive to feedback and interactions as I would like.
- Newsletters are not the best place to put code and tutorials.
So that’s what has brought me to creating this blog: it’s another way to communicate with readers and convey information. What are my hopes for this blog, then? (continue reading…)