Need a simple script - input box to link

Discussion in 'HTML & Website Design' started by meirba, Mar 26, 2008.

  1. #1
    hi
    I need a script that will convert searched words from the search box/input box to a link.

    For example if I type "1234" in the search box and click on search button I want the page immediately redirect to :
    http://xyz.com/?q=1234

    Please help me
    If anybody knows paste it here
    Thanks
     
    meirba, Mar 26, 2008 IP
  2. lslars31

    lslars31 Peon

    Messages:
    260
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <form method="get" action="http://xyz.com/">
    <input type="text" name="q">
    <input type="submit" value="Submit">
    </form>
     
    lslars31, Mar 26, 2008 IP
  3. meirba

    meirba Banned

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks lslars31
    I put this script on php page and it works great
     
    meirba, Mar 26, 2008 IP
  4. lslars31

    lslars31 Peon

    Messages:
    260
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Awesome, glad I could help out.
     
    lslars31, Mar 27, 2008 IP
  5. sercan

    sercan Well-Known Member

    Messages:
    204
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #5
    how can i do the same thing without using form method? just using JavaScript..
     
    sercan, Sep 8, 2008 IP