< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Contoh Latihan HTML :: Check & Uncheck All
< ?php$hobi = $_POST['hobi'];if(empty($hobi)){?>Silahkan Pilih Hobi Anda :< ?php}if(is_array($hobi)){echo ‘Hobi yang anda pilih : ’;foreach($hobi as $indek=>$namahobi){echo ‘Hobi indek ‘.$indek.’ : ‘.$namahobi.’’;}echo ‘Back »’;}?>
Tidak ada komentar:
Posting Komentar