<!--drop down box row --> <tr width="100%" height="5%" CellSpacing="0" cellpadding="0"> <td width="1%"> <form width="100%"> <label width="100%">Select Region:</label> </form> </td> <td width="2%"> <?php echo "<select id='cbRegions' onchange='cbo_Region_optionChange(this.value);'>"; echo "<option value=''>--Select Region--</option>"; require_once 'php/readFile.php'; $values = read_file_to_array("/home/fatma/twitter_data/twitter_nlp-master/Tweets_Data/London_Regions"); foreach ($values as $value) { //echo($value); echo "<option value='{$value}'>{$value}</option>"; } echo "</select>"; ?> </td> <td width="1%"> <form width="100%"> <label width="100%">Select Street:</label> </form> </td>
<?php require_once 'readFile.php'; $strSelectedRegion = $_GET['select']; $arr_values = read_file_to_array('/home/fatma/twitter_data/twitter_nlp-master/Tweets_Data/London_Streets/' . $strSelectedRegion); sort($arr_values); echo json_encode($arr_values);