If the last reply didn't help you, try this:

<td><input name="<?php echo $sys; ?>" type="checkbox" value="name"><?php echo $sys; 

Another way to write, if you aren't worried about <? being used by another

<td><input name="<?=$sys?>" type="checkbox" value="name"><?=$sys?></td>


On Tue, 12 Nov 2002, NIPP, SCOTT V (SBCSI) wrote:

>       I am attempting to create a form of system names that is populated
> from a database query.  The database query is working fine, and the form
> <form name="form1" method="post" action="">
> <table border="0" align="center">
>   <?php do {
>     $sys = $system['Name'];
>     if ($cnt == 1) {
>       $cnt = 2;
>       echo "<tr>"; ?>
>     <td width="161"><input name="$sys" type="checkbox" value="name">
>       <?php echo $sys; ?></td>

Peter Beckman            Systems Engineer, Fairfax Cable Access Corporation
[EMAIL PROTECTED]                             http://www.purplecow.com/

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to