PDA

View Full Version : How to get a string value from typing and put in a address bar


kamkam
07-08-2009, 04:15 AM
Hi;

How to get a string value from typing and put in a address bar.
For example, if i type javascript tutorial, and then click submit, the url in the adress bar will like "http://www.xxxx.com/index.php?string=javascript+tutorial"

Could anyone can help me, please, thanks

<form action="index.php?" method="post">
search string: <input type="text" search="" />

<input type="submit" />
</form>

abduraooft
07-08-2009, 09:30 AM
Just change method="post" to method="get"

kamkam
07-10-2009, 10:41 AM
Thanks a lot