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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -