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
Post a Comment