This question title was edited. The original title was **"How can I submit a string in a form and have it applied as a request parameter in the url?"**.

---

Think of a simple server where a string is received as a route parameter, e.g. with `localhost:3000/hello` it serves a page containing 'hello'.

This is easily implemented, here is a simple express server doing that:

```
var express = require("express");
var app = express();

app.get("/:string", function(req, res) {
  res.send(req.params.string);
});

app.listen(3000);

```

Is it possible to supply the string via a form?