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

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

$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.helloWorld4</h1>
<form action="" method="get">
name:<input type="text" name="name" value="<?php echo $name;?>"/><br>
</form>
<input type="submit" name="submit"/>
</form>
</body>
</html>