I'm doing this on windows
I hosted my site using Node.js
I have a server.js file, which put my entire directory on localhost:3000
var connect = require('connect'); connect.createServer( connect.static(__dirname) ).listen(3000);
than i got an index.html page (localhost:3000)
<html> <head></head> <body> <form action="calender.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> </div> </body>
i got MongDB installed on my windows, i was able to start up the Mongod.exe and run my commands to create database files n such using the shell. I have the correct drivers installed in my nodejs 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 registration button the account information gets saved in the database.
can someone please help me with this? also im trying to avoid sleepy mongoose because i dont want to use python.