Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    306
    Thanks
    24
    Thanked 0 Times in 0 Posts

    How to get a string value from typing and put in a address bar

    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>

  2. #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,998
    Thanks
    164
    Thanked 2,242 Times in 2,229 Posts
    Just change method="post" to method="get"
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  3. #3
    Regular Coder
    Join Date
    Dec 2006
    Posts
    306
    Thanks
    24
    Thanked 0 Times in 0 Posts
    Thanks a lot


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •