Skip to content

Instantly share code, notes, and snippets.

@BlazeInferno64
Created August 23, 2023 17:59
Show Gist options
  • Save BlazeInferno64/3aff83f2651df277853caf8e2a0e52f8 to your computer and use it in GitHub Desktop.
Save BlazeInferno64/3aff83f2651df277853caf8e2a0e52f8 to your computer and use it in GitHub Desktop.
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: true }));
app.post('/submit', (req, res) => {
const formData = req.body;
// Process formData here
console.log(formData);
res.send('Form submitted successfully');
});
const PORT = 3000;
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});
@BlazeInferno64
Copy link
Author

A simple Form Submit server in express js to process the data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment