I have a website, with a section that allows a user to log in. Once the user has entered their details and clicked "log in", how would I get that information from the server request to process? I am aware of the "get" method, however, whenever I use this, all of the values from the form are displayed in the URL (including the password).
Here is the function from the server file that deals with the request
function handle(request, response) {
var url = request.url;
url = removeQuery(url);
url = lower(url);
url = addIndex(url);
var querystring = require('querystring');
var params = querystring.parse(require('url').parse(request.url).query);
if (! valid(url)) return fail(response, NotFound, "Invalid URL");
if (! safe(url)) return fail(response, NotFound, "Unsafe URL");
if (! open(url)) return fail(response, NotFound, "URL has been banned");
var type = findType(url);
if (type == null) return fail(response, BadType, "File type unsupported");
if (type == "text/html") type = negotiate(request.headers.accept);
reply(response, url, type);
}
Basically, how can I get the information out of a form without it being visible in the URL?