I am wondering if it is possible to change the way forms submit data without the use of JS or perhaps in a search engine friendly way
I have two separate very basic forms. The first contains a dropdown menu allowing you to pick a subject. The other serves the exact same purpose, it only allows you to type the subject in a text box (and make use of autocomplete) rather than picking it up from the long list.
Currently both forms submit the data in a GET method, so a basic submission for the same choice would result in the following URL :
http://example.com/subject/?text=XXXXXX
(I am using .htaccess to rewrite /subject to an actual php script…)
What i am trying to do is actually make the URL look like this instead:
http://example.com/subject/XXXXXX
Currently my .htaccess will recognize both URLs with no problem, i am just curious to know if there is a way to make forms submit using the second method with no JS or any SE friendly method
You could make a list of choices with all the urls and if js is disabled (SE) you show this list (and hide the form). If js is enabled you show the form.
You can hide the form in css and set it to visible using js. Or generate the whole form using js.