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

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
Michael Hulet
47,912 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