In this week’s WebDev Q&A, I answer questions on:
- Do you believe in the myth of the full stack developer?
- How do I process checkboxes using PHP?
- How do I use PDO in my web pages?
Links mentioned in the video:
- Get the best price on Bluehost web hosting (affiliate)
- PHP Multiple Checkbox Array Handling
- How to Structure Database and Object Model
- How to Insert Form Data Into a MySQL Database Using PHP
- Let me help you publicize your blog
- Take my “How to Start a Blog” free tutorial
- Follow me on Periscope to ask questions live
When you said specialization: Does it mean you don’t believe in the myth of “Full-Stack” developer?
Not necessarily. It’s more about how it’s applied and then marketed then the languages you know. I build membership sites. That’s how I market myself. In that, I use most of the “stack”… I’d just never market my services using the words “full stack”.
Also, marketing yourself as a freelancer is much different than getting hired by a company. I would use “full stack” when looking to get hired because companies hiring developers DO know what that phrase means.
How can I make the file insert all the check-box values selected in my form as an array into one column?
First you have to set up your HTML correctly. Here’s a code example:
Once you have this done then you would write your PHP script to handle the resulting array. You could serialize it. Depending on your application that might be sufficient.
But, if you want to be able to perform searches on these values then you’d actually store them in a separate table (a relationships table) and associate them with whatever object you’re creating with this form. Here’s a tutorial on that:
How do you use PDO in your web pages?
It’s probably best to just watch this tutorial:
If you get value from this video, please consider sharing it with another developer or group who could benefit from it.