<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body onload="searchForPrograms.submit();">
<form id="searchForPrograms" name="searchForPrograms" enctype="application/x-www-form-urlencoded" method="get" action="searchingEngine.php">
<input type="text" id="query" name="query" value="MyProgram" /><br>
<input type="submit" value="Search" />
</form>
</body>
获取请求的格式应类似于“searchingEngine.php?query=%22MyProgram%22”。
如何正确编码查询输入的值?