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
Post a Comment