Tuesday, 6 November 2018

HTML to Node question. Sort of.

So after going through as many results when i search for "HTML to Node", or similar searches, I've come to a major impasse. I cannot for the life of me figure out how to do the following:a) submit a variable from a web page to node, like an input field and a button. b) have it tell me what the variable was, ie "you sent ABC to the server"Now I've seen examples that use express, JSON, using the POST/GET methods, the HTML has a form action, or sometimes it doesnt, the example is using XMLHttpRequests, or requiring Querystring, JS using all sorts of NPM modules that I dont have installed, but the examples all either incomplete, or more likely, I'm putting the cart before the horse and have no clue what I'm doing. Oh, and most examples are going from Node TO the HTML page.So, since I'm not here to get easy answers, do any of you know of some resources that I'd want to use to learn how to do what I mentioned above? I'm happy to put in the work, but as silly as it may sound, I'm completely at a loss.

Submitted November 06, 2018 at 06:31PM by orksaredorks

No comments:

Post a Comment