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



Kirim email ke