Dear ,
> function outputForm()
> {
global $submit,$nama,$pass; // tambahin ini
> if(isset($submit))
> {
> if(!empty($nama)&&!empty($pass))
> {
> echo "Your result is <b>$nama</b> and <b>$pass</b>, <a
> href=\"passing.php\">BACK</a>";
> }
> else
> {
> echo "Not Working!, <a href=\"passing.php\">BACK</a>";
> }
> }
> }
Regards,
Yanto Mulia
Dimensi Multi Media, pt
IT Solution & Event Organizer
Komp. Gading Bukit Indah Q/33
Jakarta Utara - 14240
Phone : +62 21 4585 2933
Fax : +62 21 4585 2980
Website : http://www.dimensi.com
On Mon, 07 Mar 2005 11:51:30 +0700
"Jodi.AU" <[EMAIL PROTECTED]> wrote:
------------------------------------------------------------------------
> Halo rekan2 programmer
>
> saya sdg membuat LoginForm menggunakan Class.
> pada saat di Run (setelah tombol Submit ditekan) variable $nama & $pass
> selalu tidak tampil, tolong koreksi & bantuannya (gimana caranya passing
> variabel antar function).
> NB: saya men-set register globals = On
> ~tia~
>
> Jodi
> Y!:jodimu77
>
>
> ini scriptnya=>
>
> <?php
> # passing.php
> /*
>
> Class passing
> {
> function inputForm()
> {
> echo "<pre>";
> echo "<form action=\"passing.php\" method=post>";
> echo "Nama :<input type=text name=nama><br>";
> echo "Password :<input type=password name=pass><br>";
> echo "<input type=submit name=submit value=Submit><input
> type=reset name=reset value=Reset>";
> echo "</form>";
> echo "</pre>";
> }
> function outputForm()
> {
> if(isset($submit))
> {
> if(!empty($nama)&&!empty($pass))
> {
> echo "Your result is <b>$nama</b> and <b>$pass</b>,
<a
> href=\"passing.php\">BACK</a>";
> }
> else
> {
> echo "Not Working!, <a
href=\"passing.php\">BACK</a>";
> }
> }
> }
> function login()
> {
> $this->inputForm();
> $this->outputForm();
> }
> }
>
> $passing = new passing();
> $passing->login();
>
> */
> ?>
>
>
>
>
>
>
> --
> Berhenti langganan: [EMAIL PROTECTED]
> Arsip dan info: http://linux.or.id/milis
------------------------------------------------------------------------
--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis