Hey-
I've got a form that has a dropdown generated from php: <?php echo "$TypesDD" ?>
$TypesDD is defined in an included php file from a mySQL db. Pertinent part is:
$TypesDD = "<select name=\"TypesDD\" id=\"TypeDD\">";
. . .
while($row = mysql_fetch_row($result))
if($lasttype != $row[0]){
$TypesDD .= '<option value=';
$TypesDD .= $row[0];
if ($row[0]==$type)
$TypesDD .= ' selected';
$TypesDD .= ">" ;
$TypesDD .= $row[0];
$TypesDD .= "</option>";
$lasttype = $row[0];
}
After the form is submitted, I get it by saying: $type =$_POST["TypesDD"] ;
Everything works great...UNTIL there is a two-word (or more, I suppose) item in the list & the post only gets the first word (leaves out the space & everything after it)...
I've tried a _wide_ variety of single & double quotes in most every different place (the POST originally had single quotes, which I usually use), escaping, not escaping, nothing seems to work...
What am I doing wrong?!?
Any help GREATLY appreciated!
-Midgard