<?php
if ($_GET['_value'] == '福特'){
$array[] = array('' => '選擇型號');
$array[] = array('Mondeo' => 'Mondeo');
$array[] = array('Focus' => 'Focus');
}elseif($_GET['_value'] == '日產'){
$array[] = array('' => '選擇型號');
$array[] = array('TIIDA' => 'TIIDA');
$array[] = array('TEANA' => 'TEANA');
}elseif($_GET['_value'] == '豐田'){
$array[] = array('' => '選擇型號');
$array[] = array('ALTIS' => 'ALTIS');
$array[] = array('CAMRY' => 'CAMRY');
$array[] = array('YARIS' => 'YARIS');
}else{
$array[] = array('' => '尚未選擇廠牌');
}
//include "json_encode.php";
echo json_encode( $array );
?>