html - Form submission without parameter name -


<form action="/foo">         <input type="text" name="q">         <input type="submit" > </form> 

in previous html, if user types in 'bar' , clicks button submit example.com/foo?q=bar. how can make go example.com/foo/bar? can js i'm trying stick html.

there no way in html, need programming language.

have on server process form issue http 301 response location header.

you enhance use form's submit event prevent default action , set location in js.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

css - Text drops down with smaller window -