masih belum bisa juga mas..
nilai $row['type'] nya udah bener..
dari cara yg dikasih tu saya dah ngerti.. masuk akal..
cuman kenapa ga ada yg ke-SELECTED maupun CHECKED ya?
--- mail15 <[EMAIL PROTECTED]> wrote:
> check dulu nilai $row['type'] nya.
>
> utk checkbox sama radio button hampir mirip utk buat
> combo
> $default=$row[type];
> echo "</td>\n";
> $type=array("","Freehand","Nominate","Freehand -
> Nominate","Key Account");
> for($i=0;$i<count($type);$i++){
> echo "<input type=checkbox name=type
> value='$type[$i]' ";
> if($default == $type[$i] ) echo "CHECKED";
> echo ">";
> }
>
> ----------------------------------------------
> a new programmer
> http://geocities.com/amadarum
>
> ----- Original Message -----
> From: "imam malik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 04, 2003 4:32 PM
> Subject: RE: [linux-programming] edit form
>
>
> > terima kasih mas mas..
> > text area uda bisa..
> > cuman yg combo ko ga muncul ya?
> > yg aku bikin begini:
> >
> > echo "<td>Type:\n";
> > $default=$row[type];
> > echo "</td>\n";
> > $type=array("","Freehand","Nominate","Freehand -
> > Nominate","Key Account");
> > echo "<td><select name=type size=1>\n";
> > for($i=0;$i<count($type);$i++){
> > echo "<option value='$type[$i]' ";
> > if($default == $type[$i] ) echo "SELECTED";
> > echo ">$type[$i]</option>";
> > }
> > echo "</select>";
> >
> > bagaimana pula yg check box & radio button??
> >
> > --- kongput <[EMAIL PROTECTED]> wrote:
> > > Coba kirim donk Sample programnya..
> > > Biar dimengerti apa masalahnya..
> > > Gito loh mas... :)
> > >
> > > -----Original Message-----
> > > From: imam malik
> [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, November 04, 2003 1:01 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [linux-programming] edit form
> > >
> > >
> > > mas mas..
> > > nanya hal sepele ni.. tapi bikin aku puyeng :-(
> > > aku bikin web db dg php+pgsql.
> > > buka form, isi, save, tampilin .. smua ok!
> > > tapi giliran edit, kenapa aku ga bisa nampilin
> > > kembali
> > > data yg udah kesimpen dlm bentuk textarea, combo
> (ga
> > > ada selected-nya), check n radio button?
> > >
> > > mohon dibimbing..
> > >
> > > <yg masih tertatih..>
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php