PDA

View Full Version : Form Variables in URL


Erindesign
05-10-2008, 12:32 AM
Sorry if this is the wrong category (probalby is). I don't know what it applies to.

I'm making a site with a search form, but I want it to be search engine friendly/user friendly.

I want the keyword used to appear in the url. I can do a "Get" method form but it isn't very effective. Too messy.

Pixel2Life.com has a different system, and that is what I am after. When you search, it goes to http://www.pixel2life.com/search/all/Keyword/1/


How is this done????

shyam
05-10-2008, 07:19 AM
Sorry if this is the wrong category (probalby is). I don't know what it applies to.

yes. you are in the wrong forum you should have posted in other server-side languages/issues (http://www.codingforums.com/forumdisplay.php?f=9)...

what you are looking for is meaningful urls and to achieve it you have to have some sort of url rewriting scheme which translates between the urls to the actual pages (for eg. if you are using the apache server there is a mod_rewrite module that does this)

in you eg. http://www.pixel2life.com/search/all/Keyword/1/ will actually be internally translated by the server as http://www.pixel2life.com/search.php?categegory=all&query=Keyword&page=1 or something of the same sort

Erindesign
05-10-2008, 02:24 PM
I know how to translate the URL but I don't know how a FORM submits that kind of url.