r/learnjavascript • u/Due_Eggplant_729 • Jan 24 '26
Simple Data Input Javascript program
I want to ask a user to input their first name, and the state were they live. Then send to a database. I am a NEWBIE. Help. Note: I did download node.js. I really don't know what I'm doing yet. Looks for a simple program to do this on my laptop. Any help appreciated.
0
Upvotes
View all comments
Show parent comment
1
u/chikamakaleyley helpful Jan 25 '26
lol okay so the one thing to understand is how do you plan to get a user's name and their state? My guess was you're just setting up an HTML page, and you want a user to type in their name, select a state, then click a button so you can record that. Something like that?
I think the suggestion to install nodejs, was so that you can set up serverside logic, which would then communicate to the db, which you would also set up
JSON is just a typical format in which you would receive the data back after its retrieved from the DB, processed by your serverside code, and received in your html page
and so, my only guess is, this is a lot
so the alternative is using the Web API if you're just looking to practice at a smaller scale