I'm trying to call class method as usual. The problem is that when ->
is entered to call method by object at following line
$Error = $obj->set($Name,$Fname,$Gender,$Email,$Password);
after -> same code prints on page.
I mean perhaps compiler consider >
in object->set()
as closing tag of PHP. My page is saved as html extension and all other HTML code work right, but method is not calling and text after ->
printing as it is on page.
Following is my code
<?php
include 'Validation.php';
$obj= new formvalidate;
if(isset($_POST['signup']))
{
$Name=$_POST['name'];
$Fname=$_POST['fname'];
$Gender=$_POST['gender'];
$Email=$_POST['email'];
$Password=$_POST['password'];
$Error = $obj->set($Name,$Fname,$Gender,$Email,$Password);
}
?>