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

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,638 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
14,242 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.