Form Validation -Dreamvr & PHP
| From: | Pam Joseph | Date: | Tue, 15 Aug 2000 16:12:02 +0000 |
| Subject: | Form Validation -Dreamvr & PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11833@lists.php.net to get a copy of this message | ||
Hey Ya'll,
Does anyone know how I can get Dreamweaver to pick up my list box that lists
Categories from the database as a form element to validate that a category
has been chosen from the box? It picks up all the other elements except for
this one.
Here is the code:
while( $row = mysql_fetch_array($result) ) {
$Option .= "<option
value=\"".$row["cat_id"]."\">".$row["cat_title"]."</option>\n";
$items++;
}
if ($items > 8)
$items = 8;
$items--;
?>
<select name="cat_id" size="<? echo $items; ?>" multiple>
<? echo $Option; ?>
</select>
Thanks,
pj
pj
Pamela M. Joseph ____
Web Developer ||""||
Georgia Perimeter College ||__||
Clarkston Campus [ -=.]
(404)298-5208 =======:0~