Jump to content

(generic) data receiving validation grabber


Q695

Recommended Posts

I'm trying to build a generic data receiving checker.  Here is what I have, but it's not working as you would to verify the variable was passed properly by the client:

function setter($verify, $pass_value){
    if (isset($verify) && $verify!=''){
        $pass_value=$verify;
        echo $pass_value;
        return $pass_value;
    }
}
$_POST['testing'] = "this works";
$verify = '$_POST[\'testing\']';
$pass_value = "\$outputed";
setter($verify, $pass_value);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.