Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134322

cuk on "How to shorten url from form (method="get")?"

$
0
0

Hi!

I've created a form on my website which acts like a search engine for my dictionary. Everything's ok until I start using all these options for advanced search and URL (which contains all the data necessary for the mysql query) starts looking something like this:

http://blablamysite.com/?page_id=72&id=0&upis=gla&jezik=engleski&napredno=yes&imenica=on&pridjev=on&prilog=on

Not only this is impractical, but I'd rather visitors didn't have to see all that data in the URL.

I've written this code in a page template and omitted the action attribute as it would otherwise redirect me to my homepage.

Is there a way I could continue using method get, but make it invisible for the visitors (or encode it)?


Viewing all articles
Browse latest Browse all 134322

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>