send parameters of form via URL -


i have form this:

<form rel="search" action="/archives">   <input name="keyword" type="text" value="search..." />   <input type="submit" value=submit" name="submit" />  </form> 

when user click on submit...i want sent parameters url...

exact url: http://examole.com/archives/keyword

or alternative way...

.

is possible?


edit

i try change above code this:

<form rel="search" action="/archives" method="get">   <input name="keyword" type="text" value="search..." />   <input type="submit" value="submit"  />  </form> 

the result:

http://127.0.0.1/archives?keyword=search... 

how can change url this:

   http://127.0.0.1/archives/search... 

yes, can. use method="get"

<form method="get" rel="search" action="/archives">    <input name="keyword" type="text" value="search..." />    <input type="submit" value=submit" name="submit" /> </form> 

Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -