Search action

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 3, 2010   (RSS)

By Toledoh - November 3, 2010

Hi Guys,

I've got a Real Estate site that I want to display results by a table view, a thumbnails view or a map view.

The viewers are resultsList.php, resultsThumb.php and resultsMap.php.

I want the search function to request the user how they would want the results displayed. ie.
<form method="POST" action="resultsMap.php">
Display:
<p>
<label>
<input type="radio" name="View" value="list" id="View_0">
list</label>
<br>
<label>
<input type="radio" name="View" value="thumb" id="View_1">
thumb</label>
<br>
<label>
<input type="radio" name="View" value="map" id="View_2">
map</label>
<br>
</p>


How can I get the action="resultsMap.php" to reflect the choice made in the form rather than hard coded to resultsMap.php?
Cheers,

Tim (toledoh.com.au)

Re: [Jason] Search action

By Toledoh - November 3, 2010

Perfect! Thanks yet again!
Cheers,

Tim (toledoh.com.au)