Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Forms Form Basics The Form Element

will the method used to process the form change how I write HTML form code? :(

Will I need to know the exact method or is it safer to leave everything to back-end engineer?

1 Answer

Michael Hulet
MOD
Michael Hulet
Treehouse Moderator 47,831 Points

The value you provide here will affect the way the backend engineer would need to write their code, so it's important to coordinate with them. It might be the case that the file you're working in is a template that the backend will use to generate the proper value(s), in which case you won't have to worry about this value at all, but if you have to write it manually, the proper value here will probably be post in most cases, but it might be get. However, no matter the value that's necessary, there will be no difference in how you write your code. The only syntactical difference between an HTML form sent via post and one sent via get is that keyword. Everything else will be exactly the same

Got it thanks :D