# propertyhive/1.4.49/templates/global/search-form.php

Property Hive, version 1.4.49. 23 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/1.4.49/code/templates/global/search-form.php
- Raw: https://pluginprobe.com/plugins/propertyhive/1.4.49/raw/templates/global/search-form.php
- Modified: 2016-02-12T11:35:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/1.4.49/code/templates/global/search-form.php#L10-L20`.

```php
<?php
/**
 * Property search form
 *
 * @author      PropertyHive
 * @package     PropertyHive/Templates
 * @version     1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>

<form name="ph_property_search" class="property-search-form property-search-form-<?php echo $id; ?> clear" action="<?php echo get_post_type_archive_link( 'property' ); ?>" method="get" role="form">

    <?php foreach ( $form_controls as $key => $field ) : ?>

        <?php ph_form_field( $key, $field ); ?>

    <?php endforeach; ?>

    <input type="submit" value="<?php _e( 'Search', 'propertyhive' ); ?>">

</form>
```
