Kamis, 24 Oktober 2013

PHP Indonesia - Facebook: [tanya] gimana cara nya lama sewa otomatis tampil...

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/ 
Use GarageBand in Just 1 Hour

Learn to create music in GarageBand and become the Beethoven you've wanted to be. This online course is just $30. Sign up today!
From our sponsors
[tanya] gimana cara nya lama sewa otomatis tampil...
Oct 24th 2013, 16:03, by Hadi Rahmad Harahap

Hadi Rahmad Harahap 4:03pm Oct 24
[tanya]
gimana cara nya lama sewa otomatis tampil bg... ketika tanggal di inputkan dengan submit yang di hidden..
ini gambarnya mastah

Fuad Suyudi 4:12pm Oct 24
kurang ngerti maksud pertanyaannya, tapi semoga yg saya tangkep benar ya :3
pake js ajagan, onclick() nanti id lama sewa di kasih value

Hadi Rahmad Harahap 4:16pm Oct 24
ketika tanggal mulai dan tanggal berakhir di isi. maka lama sewa otomatis terisi dengan penjumlahan tgl mulai dan tgl akhir..
kalo pake JS bisa ya mastah, saat saya klik textfield lama sewa otomatis terisi sendiri..hehe

Fuad Suyudi 4:19pm Oct 24
bisa gan :)

Rahmat Setiawan 4:19pm Oct 24
itu dikasih perhitungan tgl akhir - tgl mulai pake fungsi js, terus ditrigger di event on focus textbox

Ðiky Ķaurika Herlambanģ 4:23pm Oct 24
pke ajax'

Hadi Rahmad Harahap 4:26pm Oct 24
bisa beri contoh mastah..
ex:
$c=$a + $b
//dengan JS :D

Hendri Syalim 4:40pm Oct 24
dengan JS

di <select name="tglakhir" id="tglakhir" onChange="JavaScript:lamasewa()">

trus kasih aja javascript :

<script type="text/javascript">
function lamasewa()
{
var lama
var tglmulai=document.formsewa.tglmulai.value
var tglakhir=document.formsewa.tglakhir.value
lama=(eval(tglakhir)-eval(tglmulai))
document.formsewa.lama.value=lama
}
</script>

jangan lupa :

<form method="post" name="formsewa" >

semoga gak error.. hahha

Hadi Rahmad Harahap 4:47pm Oct 24
//kalo script tgl nya seperti ini gmana masukin #onChange="JavaScript:lamasewa()">
nya mas..
Tgl.Mulai :</td><td>
<select name='hari' id='hari'>";

for ($a=1; $a<=31; $a++)
echo"<option value=$a>$a</option>";

echo"</select>
/
<select name='bulan' id='bulan'>";

for ($b=1; $b<=12; $b++)
{
if ($b==1)
$bulan='Januari';
else if ($b==2)
$bulan='Februari';
else if ($b==3)
$bulan='Maret';
else if ($b==4)
$bulan='April';
else if ($b==5)
$bulan='Mei';
else if ($b==6)
$bulan='Juni';
else if ($b==7)
$bulan='Juli';
else if ($b==8)
$bulan='Agustus';
else if ($b==9)
$bulan='September';
else if ($b==10)
$bulan='Oktober';
else if ($b==11)
$bulan='November';
else if ($b==12)
$bulan='Desember';
echo"<option value=$b>$bulan</option>";
}


echo"</select>
/

<select name='tahun' id='tahun'>";

for ($c=2013; $c<=2020; $c++)
echo"<option value=$c>$c</option>";

echo"</select>

Hadi Rahmad Harahap 4:47pm Oct 24
:)

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