Monday, 12 August 2013

Input with joined query component without JavaScript

Input with joined query component without JavaScript

I have a form element and I would like the URL to be
http://example.com/page.html?a=constant+QUERY_TEXT
If I wanted
http://example.com/page.html?a=constant&b=QUERY_TEXT
I could use
<form action="http://example.com/page.html">
<input type="hidden" name="a" value="constant">
<input type="text" name="b">
<input type="submit">
</form>
but is there any way to get my desired form without scripting?

No comments:

Post a Comment