Jump to content

search form dropdown-did i make a mess ;)


dflow

Recommended Posts

i want to search reports according to several parameters

choose the report and enter a search value in a text field

<div id="apDiv1">
  <form id="formFindby" name="formFindby" method="post" 
  
<select name="FindBYType" id="FindBYType">
    <option value="0">FindBy</option>
    <option value="1">RequestID</option>
    <option value="2">Customer Last Name</option>
    <option value="3">Email</option>
  </select>

<?php
  switch ($alpha)
{
    case 1:
echo 'action="tablesort_agentscreen-FindRequest.php">';
        break;
    case 2:
         echo 'action="tablesort_agentscreen-FindCustomerLastName.php">';
        break;
case 3:
        echo 'action="tablesort_agentscreen-FindCustomerEmail.php">';
        break;


} 
?>
  
  <div>
    <input type="text" name="SearchField" id="SearchField" /><input name="submit" type="button" /></div>
  </form>
  

</div>

 

Link to comment
https://forums.phpfreaks.com/topic/184175-search-form-dropdown-did-i-make-a-mess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.