Monday 10 April 2017

What is the best way to get user contact info into a database using node.js?

I have the following code on my site. When a user clicks submit, I want to be able to check their information inside of a database. What is the best way to do this using node.js?

<!DOCTYPE html>
<html>
<body>

<form action="/">
  First name:<br>
  <input type="text" name="firstname" value="First Name">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Last Name">
  <br><br>
   E-mail:<br>
  <input type="text" name="lastname" value="E-mail">

  <input type="submit" value="Submit">
</form> 


</body>
</html>

I'd like to have access to a database using node.js whenever a user submits information to me.



via ironSteel

No comments:

Post a Comment