<?php
require_once('common.php');

$image = get_param('image');
$name = get_param('name');
$isSubmit = get_param('submit');
if ($isSubmit) {
$submiturl = REST_URL."?method=HelloWorld.binaryTest";
$queries = array(
'image'=>$image,
'name'=>$name);

$res = simplexml_load_file_with_post($submiturl, $queries);
if ($res->status == 0) {
header("Location: xxxx". "?".htmlspecialchars( SID ));
exit;
}
}

?>

<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head>
<body><h1>HelloWorld.binaryTest</h1>
<form action="" method="post">
image:<input type="text" name="image" value="<?php echo $image;?>"/><br>
name:<input type="text" name="name" value="<?php echo $name;?>"/><br>
</form>
<input type="submit" name="submit"/>
</form>
</body>
</html>