Jumat, 13 September 2013

PHP Indonesia - Facebook: [help kebingungan]gan, ane mau buat jumlah inputan...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Geek Squad from Best Buy

Get instant online support. We can fix computers, cameras, car technology and more. Talk to us today.
From our sponsors
[help kebingungan]gan, ane mau buat jumlah inputan...
Sep 13th 2013, 15:48, by Rere Saputra

Rere Saputra 3:48pm Sep 13
[help kebingungan]gan, ane mau buat jumlah inputan berdasarkan jumlah data, gmna cara memanggil name inputan pada post data?
mohon pencerahan gan :(

<?php
$data = array("0"=>'tes 1' ,"1"=>"tes 2");

for ($i=0; $i<count($data); $i++){

echo "<form name='hitung' method='post' action='modul/tes/hitung.php'>
<table border='1px' bordercolor='#D0D0D0' style='border-collapse: collapse' cellpadding='3px' align='center' width='75%'>
<tr>
<td>
<input type='text' name= 'nama' disabled value=\"".$data[$i]."\" ></td>
<td valign='top'><br/>
<select name= m".$i.">";

$bln = array(
'1' => 'Sangat Buruk',
'2' => 'Buruk',
'3' => 'Cukup',
'4' => 'Baik',
'5' => 'Sangat Baik',
);
foreach ($bln as $k => $v) {
echo '<option value=';
echo $k;
if ("m".$i == $k) {
echo ' selected';}
echo '>'.$v.'</option>';
}

echo "</select></td></tr>";

}

?>

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar