guys i use Parse Post to receive my username and password But when my username included with Space its not work. my question is How can I parse a spaced-string in my php code?
<?php
function ParsePost( )
{
$username = '';
$password = '';
$post = file_get_contents( "php://input" );
$post = str_replace( "&", " ", $post );
sscanf( $post, "%s %s", $username, $password );
return array( 'user' => $username,
'pass' => $password
);
}
?>