Form Help Please

Discussion in 'Programming' started by Captain Morgan, Dec 4, 2006.

  1. #1
    Hi, All!

    I am trying to get this form to work, I'm not sure I am going about this thing the right way?

    Here is what I am trying to do. I want the search word to come up at the end of the URL when the user searches.

    Here is the code:

    
    <form name="search" method="get" action="http://www.videoboob.com/launch.php?file=browse&search=keyword">
    Search for: <input type="text" value="" name="keyword">
    <input type="submit" name="" value="Search">
    </form>
    
    Code (markup):
    Here is what I want to happen. The user imputs let's say 'comedy' in the search box. The URL generated in the title bar should be http://www.videoboob.com/launch.php?file=browse&search=keyword&keyword=comedy

    Am I being clear on this?

    THANKS for any help!
    Joe
     
    Captain Morgan, Dec 4, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    
    <form name="search" method="get" action="http://www.videoboob.com/launch.php">
    Search for: <input type="text" name="keyword">
    <input type="hidden" name="file" value="browse">
    <input type="hidden" name="search" value="keyword">
    <input type="submit" value="Search">
    </form>
    
    Code (markup):
     
    krakjoe, Dec 4, 2006 IP
  3. Captain Morgan

    Captain Morgan Peon

    Messages:
    252
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi, krakjoe!

    WOW...that was fast :)

    Works exactly as I want it to!

    THANKS,
    Joe
     
    Captain Morgan, Dec 4, 2006 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    No problem.....
     
    krakjoe, Dec 4, 2006 IP