I have an html form that has multiple elements specially including text fields, select dropdowns,etc.
What I'm looking for, is that whenever the form is submitted, I want the form get parameters in the URL address bar to change to a more user & search engine friendly URL.
As an example, after submission, I want:
www.example.com/index.php?par1=val1&par2=val2&par3=val3&par4=&par5=val5
to change to:
www.example.com/val1/val2/val3/val5/
And as you can see in the above example,if a parameter value is NULL or equal to a specific value(e.g par4 here),I want the value not to appear in the result friendly url.
How can I achieve this?I think I should use apache mod_rewrite but I'm a beginner in mod_Rewrite and appreciate your helping me with this.
Thanks in advance!