Jump to content

Recommended Posts

Hi!

 

I could really use someone's help.  I have a snippet of php code that is used in a website search form.  Here is the code:

 

<?php
}
if ($params->get('display_type')) {
?>
                    <div class="mod_fwrealestate_search_element">
                        <?php echo JText :: _('Property_type'); ?><br/>
                        <?php if ($type_id) echo JHTML :: _('select.genericlist', fwRealEstateHelper :: loadDictionary('property_type', 'Any'), 'search[property_type]', 'disabled="disabled"', 'id', 'name', $type_id);
                            else echo JHTML :: _('select.genericlist', fwRealEstateHelper :: loadDictionary('property_type', 'Any'), 'search[property_type]', '', 'id', 'name', $property_type); ?>
                    </div>
 

 

The code on the front-end displays a drop-down box from which the user selects what property type they want to search for.

 

What I would like to do is to change the code so that instead of a drop down field that shows all records in the property_type table, of which the user may select only one to search against, I would like to display only 5 specific options that appear in the property_type table, meaning, only show the options I want to show, and then allow the user to select one, all, or any combination via a check box.

 

Can anyone help me out with this coding change?  I would be eternally grateful and would be willing to make a donation to Feeding America in your name.

 

Thanks!!

 

 

Link to comment
https://forums.phpfreaks.com/topic/280005-how-do-i-modify-this-code/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.