Sadly that resembles most of the ASP/PHP code I've ever worked with.<p>The very low barriers to entry of PHP and ASP means you have (had) a lot of very inexperienced folks writing code.<p>That said, I agree with the original point that PHP can be very productive.  No compiles, no builds... just edit code/refresh browser to immediately see the effect of a change.  That's nice if you have the discipline to not do stuff like the linked example.