Kayla_Vermont
New Member
I'm doing this on Windows and I host my site using Node.js.I have a server.js file, which puts my entire directory on localhost:3000\[code\]var connect = require('connect');connect.createServer( connect.static(__dirname)).listen(3000);\[/code\]I've got an index.html page (localhost:3000) as follows...\[code\]<html> <head> <title></title> </head> <body> <form action="index2.html"> <div> <label for="fname">First Name</label> <input type="text" name="fname" required> <label for="lname">Last Name</label> <input type="text" name="lname" required> </div> <div> <label for="email">Email</label> <input type="text" iname="email" required> </div> <div> <label for="password">Password</label> <input type="password" "name="Password" size="32" required> </div> <h1> <button type="submit">Submit</button> </h1> </form> </body></html>\[/code\]I've got MongoDB installed on Windows. I was able to start up \[code\]mongod.exe\[/code\] and run my commands to create database files and such using the shell. I have the correct drivers installed in Node.js as well [npm install mongodb]I can successfully create database files using my server.js file, but I want to be able to do that in my index.html file so that, when the user clicks on the registration button, the account information gets saved in the database.Can someone please help me with this? Also I'm trying to avoid \[code\]Sleepy Mongoose\[/code\] because I don't want to use Python.Thanks.