<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<script type="text/javascript" src="../../Scripts/Base.js"></script>
<script src="../../Scripts/prototype.js"></script>
<script>
function s(){
var val=t(form1.textfield.value);
var myAjax=new Ajax.Request('back.php',{method:'post',parameters:'s='+val,onComplete:d});
}
function d(q){
alert(q.responseText);
}
function t(s){
return encodeURI(encodeURI(s));
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input name="textfield" type="text" id="textfield" value="3炯就囧氺++8·27&as00115=772" size="50" />
</label>
<label>
<input type="button" name="button" id="button" value="發送請求" onclick="s()" />
</label>
</form>
</body>
</html>