Re: [PHP] Form Validation -Dreamvr & PHP From: viva technologies (myviva <email protected>)
Date: 08/15/00

hi,

this isnt a dreamweaver specific topic cause its just plain html

okay so lets find the bug:

a)
whats the result when you echo $Option

i think you dont get something like

<option value="1">firstvalue</option><BR><option
value="2">secondvalue</option> .... and so on cause

cause you should use:

value=\"".$row["cat_id"]."\">".$row["cat_title"]."</option><BR>"; // intead
of /n

this statement is missing the brackets
if ($items > 8)
$items = 8;
$items--;

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/ viva technologies
_/ gstrein andreas

"Always listen to the experts; they'll tell you what can't be done and why.
Then do it."
- Robert A. Heinlein

#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~

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>