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

$isSubmit = get_param('submit');
if ($isSubmit) {
$submiturl = REST_URL."?method=HelloWorld.helloWorld";
$queries = array(
);

$res = simplexml_load_file_with_get($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.helloWorld</h1>
<form action="" method="get">
</form>
<input type="submit" name="submit"/>
</form>
</body>
</html>