I’m trying to build a select box for my webpage that I’m making, but when I select an option and hit submit, it only passes the first word of the string. here is my code:
<form action = “
<table>
<tr>
<td><b>Add to DB</b></td>
<td><SELECT name = “anime”>
<?php
$x=0;
while ($x<$count){
$opt = “<OPTION value = $list[$x]>$list[$x]</OPTION>”;
$x++;
echo $opt;
}
?>
</SELECT>
</tr>
</table>
<input type = “submit” value = “Add to Contact List” />
</form>
The $list has the names of animes so they are 3 and 4 words long sometime, but if i have say “Great Teacher Onizuka” as an option it only passes great. if anyone could tell me what to change, that would be great. Thanks!