[FX.php List] using a value list to define a text input field
Gjermund Gusland Thorsen
ggt667 at gmail.com
Thu Dec 30 10:09:16 MST 2004
<td VALIGN="top" HEIGHT="37">
<select name="s[fieldname]">
<option selected="selected" value="sku">Model Number</option>
<option value="compname">Manufacturer</option>
<option value="description">Description</option>
<option value="area_of_expertise">Area of Expertise</option>
<option value="date_added">Date Added</option>
</select>
</td>
<td ALIGN="left" VALIGN="top" HEIGHT="37"><input type="text" size="20"
name="s[fieldcontent]" value=""></td>
<td ALIGN="left" VALIGN="top" HEIGHT="37"><input type="submit"
name="a" value="Find Items"></td>
On Wed, 29 Dec 2004 19:50:44 -0600, Rheal Poirier
<rpoirier at advance.mb.ca> wrote:
> What I am trying to accomplish is to have the user be able to search
> through different file maker fields but chosing the field through a
> html form value list and then typing their search criteria, then click
> find
>
> for example If a user wishes to find items by company they would chose
> "company" from the pull down list, type in the company name and click
> the search button.
> Or
> If the same user wanted to find items by model number they would choose
> "model number" from the pull down list, type the model number and click
> the search button.
> The code below is the html equivalent of what I want. (sorta)
> The values in the value list (sku, compname, description, etc) are
> fields in filemaker. Do I do something with the names of these fields?
> I know I can simply change the value name in my input text to reference
> one field.
> eg. <input type="text" size="20" name="compname" value=""> will return
> a search with the specific name. Does the solution have anything to do
> with $_POST?
>
> <td VALIGN="top" HEIGHT="37">
> <select name="????" id="??????">
> <option selected="selected" value="sku">Model Number</option>
> <option value="compname">Manufacturer</option>
> <option value="description">Description</option>
> <option value="area_of_expertise">Area of Expertise</option>
> <option value="date_added">Date Added</option> </select>
> </td>
> <td ALIGN="left" VALIGN="top" HEIGHT="37">
> <input type="text" size="20" name="???????" value="">
> </td>
> <td ALIGN="left" VALIGN="top" HEIGHT="37">
> <input type="submit" name="currentQuery" value="Find Items"></td>
>
> Rheal Poirier
> Web Designer
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
More information about the FX.php_List
mailing list