Code: Select all
<select name ="From">
<?php
for ($j=0; $j < $rows; $j++)
{
$station_name = pg_result($result_set, $j, "station");
$stations[$j] = $station_name;
}
for ($i = 0; $i < $results = count($stations); $i++){
echo "<option value=".$stations[$i].">".$stations[$i]."</option>";
}
?>so when i use the $_GET to move it from one page to another the three stations City Sqaure, Hyde Park and West Park turn to Cit, Hyde, West when i try to echo them or use thme with anything.
so my conclusion was that the $_GET was messing with them.
Code: Select all
To : <?php echo urldecode($_GET["From"]);?>