Results 1 to 5 of 5
-
26th Feb 2010, 11:15 AM #1OPMemberWebsite's:
maxneeds.infoPassing 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 mePorsche_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
-
26th Feb 2010, 11:24 AM #2Respected 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.
-
26th Feb 2010, 11:35 AM #3OPMemberWebsite's:
maxneeds.infoYes 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)
-
26th Feb 2010, 11:46 AM #4Respected 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>
search.php?q=dd&res=10Bots 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.
-
26th Feb 2010, 11:48 AM #5OPMemberWebsite's:
maxneeds.infoThank you so much man
It worked !!!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Win a domain of your choice!
By pi0tr3k in forum Webmaster DiscussionReplies: 11Last Post: 26th Dec 2011, 08:37 PM -
Drink of choice?
By Jesse in forum General DiscussionReplies: 29Last Post: 26th Nov 2011, 08:16 AM -
if you had a choice
By tyyymyshoe in forum File Host DiscussionReplies: 2Last Post: 3rd Oct 2011, 06:43 AM -
Are Streaming Media Players a Passing Fad
By Daniel in forum News & Current EventsReplies: 0Last Post: 25th May 2011, 08:20 PM -
best hosting choice
By RSSeller in forum Hosting DiscussionReplies: 13Last Post: 5th Apr 2010, 05:23 PM
themaCreator - create posts from...
Version 3.46 released. Open older version (or...