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/ | |
 | Complimentary Downloads
7 Days of Complimentary Downloads: 100,000+ Motion Backgrounds, Video Clips, Production Music Tracks, Sound Effects, Special Effects and More.  | From our sponsors | | |
[ASK] Inti :Cara memanggil function dari class di ... Sep 19th 2013, 10:27, by Tupai Php | [ASK] Inti :Cara memanggil function dari class di dalam <form action='blablabla'></form>
Saya punya class gini mas dengan nama file "fungsi.php": <?php class Fungsi { function __construct(argument){ parent::__construct(); } public function tambah($a, $b){ $c = $a + $b; return $c; } } ?>
---------------------------------------- Trus saya punya form begini :
<form method='POST' action='fungsi.php'> <input type='text' name='a'> <input type='text' name='b'> <button type='submit'>Tambah!</button> </form>
---------------------------- Nah, cara manggil "function tambah" di form tersebut gimana ya mas
Mohon solusinya Terimakasih :D |
| | itu kan baru class bro.. jd belim bs digunakan... km hrus bikin object ny dulu dr class tsb | | |
|
Tidak ada komentar:
Posting Komentar