<?php
if(isset($_POST['kirim'])){
$count = count($_POST['nilai']);
for($i=0; $i<$count; $i++){
if(!empty($_POST['nilai'][$i])){
echo "Nilai ke-".($i+1)." adalah ".$_POST['nilai'][$i]."<br
/>\n";
}
}
}
echo "
<form action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">
<input type=\"text\" name=\"nilai[]\"><br />\n
<input type=\"text\" name=\"nilai[]\"><br />\n
<input type=\"text\" name=\"nilai[]\"><br />\n
<input type=\"text\" name=\"nilai[]\"><br />\n
<input type=\"text\" name=\"nilai[]\"><br />\n
<input type=\"submit\" name=\"kirim\">
</form>";
?>
LuckyGuy354
IT Beginner
http://www.wiwid.org
----- Original Message -----
From: "Eddy D" <[EMAIL PROTECTED]>
> Dear All,
>
> Minta bantuan-nya yang punya sample scripting untuk array di php.
>
> Jadi lagi ada kebutuhan untuk masukin data ke dalam database mysql.
> Jad mau bikin form, tapi pakai array
> Jadi sekali klik submit sekaligus lima record yang masuk ke database.
>
> Tx,
> eddy
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hmgj36k/M=362131.6882499.7825260.1510227/D=groups/S=1705005512:TM/Y=YAHOO/EXP=1123923789/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
----------------------------------------------------------
Komunitas MasterWeb Indonesia http://www.master.web.id
----------------------------------------------------------
MWN, Masternya WEBHOSTING di Indonesia, Indo/USA Servers,
Customer Support 24 jam http://www.masterwebnet.com
----------------------------------------------------------
WebDevelopment,Designing/Programming http://www.dlanet.com
----------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/milis-masterweb/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/