Re: database/form help needed
| From: | olinux | Date: | Sun, 06 Jan 2002 18:12:35 +0000 |
| Subject: | Re: database/form help needed | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15454@lists.php.net to get a copy of this message | ||
Use <input type="checkbox" name="id[<? echo $id ?>]">
Then you'll have an array of the boxes checked with
the id as the array key.
olinux
--- Neil Thomson <gendouikari@optushome.com.au> wrote:
> try using the rand function..
> eg...
> $rand=rand(1,10);
> <input type='text' name='id$rand'>
>
>
> but that migth get a same number more then once...
> my suggestion is this
>
> $checkboxid="1";
> // Start of the loop
> echo "<input type='text' name='id$checkboxid'>";
> // end of loop
> $checkboxid = $checkboxid + 1;
>
> that should work i think....
>
> havent tested that code. but thats my idea.
>
> Neil
>
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/