How can i pass values to the method of class?
<p>I have this class </p>

<pre><code>    class Registration {

        function registration() {
            print_r($_REQUEST);

            $fname = htmlspecialchars(trim($_POST['fname']));
            $lname = htmlspecialchars(trim($_POST['lname']));
        }

$obj_reg = new registration();
    }
</code></pre>

<p>I am getting the values from <code>$.post</code> method of jquery ,here its how</p>

<pre><code>sUrl='http://localhost/Temp/registration.php'
tsQueryStr='f_name=rjseh&amp;l_name=rjseh&amp;badge_name=rjseh';


    $.post(sUrl,tsQueryStr, function(data){
            alert(data);

        });
</code></pre>

<p>But these values are not printing inside class method
I am using core-php</p>

<p>please help,</p>
