declare variable
| From: | kaab kaoutar | Date: | Wed, 24 Jan 2001 14:45:01 +0000 |
| Subject: | declare variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36417@lists.php.net to get a copy of this message | ||
Hi all!
first thanks for urvreplies about the editors and tutorials!
well while trying a my first php form i had to use a loop in the confirmation part which looks like:
<?php
echo " " . $personal["name"]. "\n" . $personal["email"] . "<br> " ;
echo Count($beer);
$i=0;
for ($i=0;$i<Count($beer);$i++) echo $beer[i];
?>
i have the same error the constant i is not defined ...
how acn i fix it ?
by the way the html form looks like :
<form action="conf_form.php" method="post">
Name: <input type="text" name="personal[name]"><br>
Email: <input type="text" name="personal[email]"><br>
Beer: <br>
<select multiple name="beer[]">
<option value="warthog">Warthog
<option value="guinness">Guinness
<option value="stuttgarter">Stuttgarter Schwabenbräu
</select>
<input type="submit">
</form>
THANKS
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.