Home » Products
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Searching across x2 fields

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Searching across x2 fields

    Hi,

    I've a basic search form, with x2 input fields:

    "Subject" and "Location"

    Record #1
    <meta name="Subject" content="Mechanic">
    <meta name="Suburb" content="Granville">
    <meta name="State" content="NSW">

    Record #2
    <meta name="Subject" content="Mechanic">
    <meta name="Suburb" content="Granville">
    <meta name="State" content="QLD">


    So if a user enters data in the search input fields as:
    Subject = Mechanic
    Location = Granville, NSW

    How can I specify that the "location" must in fact search across x2 meta tag fields -- ie. Suburb and State?

    Thankyou!
    Jay.

  • #2
    Any reason why you don't want to have 3 input fields, so that the user can specify the Suburb and State individually?

    I can't think of any obvious way to make a search apply across two different fields, that's a very unusual requirement.

    You could, alternatively, change your data set such that they contain a single location field, e.g.
    <meta name="Location" content="Granville, NSW">
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...
    X