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

Databases

Alex Oates
Alex Oates
7,171 Points

Options for form processing and accessing submitted data from my contact form

I have created a contact form for my website and i'm at the stage now where I need to write the script to process the submitted data. A general overview of what i'd like to achieve:

All data submitted will be stored in MySQL database.

Data submitted will also be sent to myemail@mydomain.com.

I'm currently developing locally using MAMP.

What language should I choose for this type of scripting? PHP or Python? I've heard Python is easier?

Also, is there a video/ course available that covers all if not most of the above?

Thanks!

1 Answer

Steven Parker
Steven Parker
230,250 Points

If you've had no experience with either, or with any similar languages, Python is probably easier to learn from scratch.

There are several Treehouse courses for both languages. In fact, there are entire "tracks" for both PHP and Python, Although the PHP course is a bit more extensive, and it might have more of the specific kinds of things you want to do (I haven't taken it yet myself so I'm not sure).