You are here: Re: multiple input boxes « PHP Programming Language « IT news, forums, messages
Re: multiple input boxes

Posted by Auddog on 11/22/06 17:37

"BKDotCom" <bkfake-google@yahoo.com> wrote in message
news:1164216158.198664.247870@b28g2000cwb.googlegroups.com...
>
> Auddog wrote:
>> while (list($id, $fname, $lname) = mysqli_fetch_row($result))
>> {
>> echo " <tr>
>> <td><div align=center>$id</div></td>
>> <td>$fname</td>
>> <td>$lname</td>
>> <td><input name=hours type=text size=4 maxlength=4 />
>> </tr>";
>> }
>
>> The input box would be the hours input - I'm not sure I catch on to what
>> you
>> would do. Thanks for the help.
>>
>
> perhaps instead of '<input name=hours type=text size=4 maxlength=4 />'
> you do ''<input name="'.$id.'_hours" type="text" size=4 maxlength=4
> />''
>
> I assume that 'id' is unique for each from
> ??
>

This will make each input name unique by adding the '.$id.'_ - correct?
which is also the same id for each user? Then I can use the $_POST = array
to input into my database.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация