What do you mean by "are the choices posted correctly"??
print_r($_POST) yields:
Array ( [q] => 'searchQuery' ) //searchQuery is the text that was searched for
displays this ten (10) times (results limited to ten max)
I tried the above example (jpadie) and I'm still having issues...
below is a little more of the above code (using the last example)
<?
if (is_array($result['resultElements']))
{
foreach ($result['resultElements'] as $r)
{
if ($_POST['choice'] == "first")
{
do...
//This is the drop-down option box
<form>
<select size="1" name="choice">
<option value="first">First</option>
<option value="second">Second</option>
<option value="third">Third</option>
<option value="fourth">Fourth</option>
</select>
</form>
//Below is similar to how i want the...
I am trying to create a search for my website and I am running into some troubles...
I have the search field (where the user enters the text to search for)...and then below I have a drop-down option box with different options of way to display the results...
The problem I have is that when the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.