Welcome Guest, Not a member yet? Register   Sign In
Form Help question...
#1

[eluser]Jbeasley6651[/eluser]
I am using ci's form helper.

I am making a search on my site and i have a search box on the home page and then the same search box on the results page. (for the ability to refine the search)

What is the BEST way to pass this information from one form to the other?

Search box code

Code:
<?=form_open('search/results',array('id' => 'searchForm'))?>
<p>
<label>Bedrooms</label>
&lt;?php echo form_dropdown('beds', $numop);?&gt;
</p>
<p>
<label>Bathrooms</label>
&lt;?php echo form_dropdown('baths', $numop); ?&gt;</p>
<p>
<p>
<label>Price Minimum</label>
&lt;?php echo form_dropdown('price_min', $prices, '50000'); ?&gt;</p>    
<p>
<p>
<label>Price Max</label>
&lt;?php echo form_dropdown('price_max', $prices, '2500000'); ?&gt;</p>
<p>
<p>
    <label>MLS ID</label>
    &lt;input type="text" name="mlsid" value="" size="50" /&gt;
</p>
<p>
    <label>City</label>
    &lt;input type="text" name="city" value="" size="50" /&gt;
</p>
<p>
    &lt;input type="submit" value="Submit" class="btn" /&gt;
</p>
&lt;/form&gt;

Thanks in advanced.

~ Jbeasley


Messages In This Thread
Form Help question... - by El Forum - 06-25-2009, 03:57 PM
Form Help question... - by El Forum - 06-25-2009, 05:06 PM
Form Help question... - by El Forum - 06-25-2009, 06:39 PM
Form Help question... - by El Forum - 06-25-2009, 09:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB