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

Question Any help will be appreciated.

I'm working on a project that is haves sign in and log in page. Does it needs a server so it saves the results in that page?

3 Answers

Aakash Srivastav
seal-mask
.a{fill-rule:evenodd;}techdegree
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,626 Points

. You can get the values using Javascript, and Ajax them in, but you still need a server side language to do something with the values. If you're not planning on sending or storing the user form data, what is the form for?

If you just want to get the values of some input, and not send it, you just use on of Javascripts methods for getting values (or jQuery if you decide to include that library). You don't use a form, thus you don't have an action or method.

To have an action and method on a form, you need a server side language to handle that.

Truth be told, it's pretty easy to send emails with the PHP mailer website, and almost all hosting servers, even your most basic shared plans have PHP installed on them for you. Thank You :)

You're welcome :] .

boi
boi
9,396 Points

Did you just copy-paste an answer from Kevin Korte XD

David Stulajter
David Stulajter
4,125 Points

If I understand this question correctly, yes you do. With Rails is one way to do it.

Emmanuel Molina
Emmanuel Molina
9,268 Points

It depends on what exactly do you want to achieve. If the login/password is saved in a database, yes, you need a running server and some code (in php, pyhton, ruby or whatever). If you want a simple password protected page you can do it in javascript.