I am having a problem with my selection box cutting the selected value off after the first word.
My selection is from a list of station names - these are often two words
The names are held in a db called stations
and contain names like Seven Sisters, Turnpike Lane
The problen is that the value returned by x_stat in the $_POST array
only contains the first word eg Seven ot Turnpike.
Why is this and how can I get the complete variable.
The complete variable shows in the selction box so there is nothing wrong with the
stations db.
Here is the code :
<td class = 'add_col3' ><select size = 8 name='x_stat' >
<?php
$sql = "SELECT station FROM stations order by station";
$result = mysql_query($sql) or die ("Could not 1st execute query.");
while ($row = mysql_fetch_array($result))
{
extract($row);
echo " <option value = $station>$station</option>";
} ?>
</select></td>
Thanks for any help.