Re: Form Validation -Dreamvr & PHP
| From: | viva technologies | Date: | Tue, 15 Aug 2000 17:48:03 +0000 |
| Subject: | Re: Form Validation -Dreamvr & PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11848@lists.php.net to get a copy of this message | ||
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@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net