Hello Frieds,
I have problem with simple class in php. Please Help.
This is my form code.
<form name="form1" action="ex1_exec.php" method="POST" />
<input type="text" name="val1" />
<input type="submit" name="submit" value="Submit" />
</form>
and,
the ex1_exec.php file code is,
<?php
public $val1=$_POST['val1'];
class tempclass
{
return $this->val1+5;
}
$obj=new tempclass($val1);
echo $obj->val1;
?>
When try to run those codes, i get only empty page.
Please Help for this problem.