Location: PHPKode > projects > MembersGear > membersgear/includes/shipping_st.php
<?php
require_once("../config/config.php");   
require_once INCLUDE_DIR."/users_class.php";
if(isset($_POST['billing_country']))
 {    

        $ajexval=$_POST['ajexvalidation'];    
        $a = $_POST['billing_country'];
        
        $lsValues = array();
        $users = new users_class();
        sleep(1);
        $result='';
         if($ajexval=="usersignup")   
            $result="usersignup[|||]"; 
         else
           $result="adminsignup[|||]"; 
        
        $result.= "<select id='bllling_state' name='bllling_state'  class='selectcss' style='width:208px'>";
        $result.="<option value='0'>select..</option>";
     
     
        $lTypes=null;
        
        //If Select is selected then
        if($a==0)
            $a=-1;
           
        $query= "SELECT id,name FROM ".TABLE_PREFIX."location where parentid=$a  and status=1 order by name asc";
           
        $Stateresult = $users->View($query);
        //$i = 1;
        $i = 0;
        $length=count($Stateresult);
        if($length==1 && $Stateresult[0]['id']=="")
         {
             if($Stateresult[0]['id']!="")
             {
                    while($length > $i)
                     {
                       $result.="<option value=".$Stateresult[$i]['id'].">".$Stateresult[$i]['name']."</option>"; 
                       $i++;
                     }
             }       
         }
         else
          {
             while($length > $i)
                     {
                       $result.="<option value=".$Stateresult[$i]['id'].">".$Stateresult[$i]['name']."</option>"; 
                       $i++;
                     }
          }
       
        
        $result .= '</select>';
       
       echo $result;
       exit;
         
    }
   
?>
Return current item: MembersGear