Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Ryan Hemrick
Ryan Hemrick
12,759 Points

Gathering Form Data and Allowing Client Access to Data

Hey everyone,

I have a question concerning a project I am working on for a client. The client requires a single form on the page. The form will include multiple input fields and a file input field. I know the basics of getting form input from the user and emailing the data via email. I don't want to send emails to my client, I really want to have a simple database that they can access to see the form submission data. I am not sure what my options are for achieving this. If anyone could help show me what my options are that would be great!

The site's content will not be updated regularly so I figured a CMS wouldn't be needed.

Any feedback would be great!

2 Answers

Hugo Paz
Hugo Paz
15,622 Points

Hi Ryan,

Seems to me that a CMS might be a good option. Even though you said the content itself won't be changed much, you still need a robust back end where your client can see form submissions, filter them, delete them and do a whole heap of other actions.

You will need to code that if you are going for a custom approach.

Ryan Hemrick
Ryan Hemrick
12,759 Points

Thanks for the response Hugo. I don't like coding around a template and I prefer to start from scratch and then integrate with a CMS if I have to work with one. Do you have much experience with CMS? If so, which one allows for more of a DIY setup?

Hugo Paz
Hugo Paz
15,622 Points

I mostly work with Wordpress. I wonder if there isn't a plugin that achieves something that similar to what you are looking for.

If you're looking to start an application from scratch, you should probably use an application framework. Frameworks provide the underworkings that almost every web app shares - all you have to do is extend and implement your own functionality.

I'm working with laravel, which has a course here on Treehouse.

From what you've described, I understand that you want to create database entries based on a single form?

Using a php framework just to acheive this functionality would probably be over kill so I would suggest looking at Wordpress -it really depends on your personal preference.

Both options might include a learning curve, but you should be able to deploy quicker because a lot of the heavy lifting has been done for you (unless you're looking to learn more in the process, and that's why you're coding it yourself ;) ).