Gossamer Forum
Quote Reply
Search Form Enhancement
Greetings,
I want to add extra fields to the search form to look like something like: http://www.gossamer-threads.com/perl/dbsql/db.cgi?db=homes&do=search_form&uid=default

However, I have no idea how to pass the query to the submit button to take all the new fields value and (with & or something) and pass them to the search.cgi together !!

Like query=x&colomnName=y

I mean can you give me a code example how to setup the search form with extra filds:
(like First Name & Last Name & Ciry & (Birthday or age)) together ,

Thanks a lot...
Mark
Quote Reply
Re: [Mark2] Search Form Enhancement In reply to
Hi Mark:

It's actually easier than you think. You can either use checkboxes (if you want the searcher to have some options) eg.

Code:
<input type="checkbox" name="yourfield" value="Yes">


where - 'yourfield' is a column in your links database.

You can also use hidden fields to do the same thing:

Code:
<input type="hidden" name="yourfield" value="Big Yellow">


In the above hidden field, your user would search the 'yourfield' column in your database for the words 'Big Yellow'

Hope this helps,



Regards,



Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory