Activity Stream
48,167 MEMBERS
6856 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Question Passing form choice to url ?

    Hi guys !
    The script i want is for search box.
    Long time ago the admin gave me the following script :"
    <form action="search.php" method="get">
    <input type="textbox" name="q" value="" /> <input class="submit" type="submit" value="Search" />"

    So this opens the following url:
    blablabla.com.search.php?q=TYPEDTEXT

    Now i want to add an option box with values 10,20 and 30 (used for maximum showed results)

    this option box must pass the choosed parameters to the url like this :

    blablabla.com.search.php?q=TYPEDTEXT&res=10

    I hope you can help me
    Porsche_maniak Reviewed by Porsche_maniak on . Passing form choice to url ? Hi guys ! The script i want is for search box. Long time ago the admin gave me the following script :" <form action="search.php" method="get"> <input type="textbox" name="q" value="" /> <input class="submit" type="submit" value="Search" />" So this opens the following url: blablabla.com.search.php?q=TYPEDTEXT Now i want to add an option box with values 10,20 and 30 (used for maximum showed results) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    i dont understand exactly , are you looking for something lke this
    <selcect name="res">
    <option value="10">10</option>
    <option value="20">20</option>
    <option value="30">30</option>
    </select>
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  4.     
    #3
    Member
    Website's:
    maxneeds.info
    Yes but how to use that?
    I must get the following url when clicking the search button.

    blablabla.com.search.php?q=TYPEDTEXT&res=10/20/30(depending on option box)

  5.     
    #4
    Respected Developer
    a simple demo will look like this
    <html>
    <head><title>Test URL</title></head>
    <body>
    <form action="search.php" method="get">
    <input type="textbox" name="q" value="" /><br />
    <select name="res">
    <option value="10">10</option>
    <option value="20">20</option>
    <option value="30">30</option>
    </select><br /><br />
    <input class="submit" type="submit" value="Search" />
    </form>
    </body>
    </html>
    it will pass two strings like this
    search.php?q=dd&res=10
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  6.     
    #5
    Member
    Website's:
    maxneeds.info
    Thank you so much man
    It worked !!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Win a domain of your choice!
    By pi0tr3k in forum Webmaster Discussion
    Replies: 11
    Last Post: 26th Dec 2011, 08:37 PM
  2. Drink of choice?
    By Jesse in forum General Discussion
    Replies: 29
    Last Post: 26th Nov 2011, 08:16 AM
  3. if you had a choice
    By tyyymyshoe in forum File Host Discussion
    Replies: 2
    Last Post: 3rd Oct 2011, 06:43 AM
  4. Are Streaming Media Players a Passing Fad
    By Daniel in forum News & Current Events
    Replies: 0
    Last Post: 25th May 2011, 08:20 PM
  5. best hosting choice
    By RSSeller in forum Hosting Discussion
    Replies: 13
    Last Post: 5th Apr 2010, 05:23 PM

Tags for this Thread

BE SOCIAL