Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 76055

Add quotation marks to URL when redirecting with GET method

$
0
0

I have a search form looking like this:

<form action='http://localhost:1000/' method='GET'>
   <input name="searchTerm" type="search">
   <button type="submit">Search</button>
</form>

Let's say, I search for the word test, the search form will redirect me to: http://localhost:1000/?searchTerm=test.

Instead, I would like to wrap quotation marks around the search term - in this case test, just like this: http://localhost:1000/?searchTerm="test".

Can anyone help me on how to do this?


Viewing all articles
Browse latest Browse all 76055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>