ajax1.php
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?
// Comentário
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
<title>frmTesteFraseAJAX</title>
<script language="JavaScript" type="text/javascript" src="include/Ajax.js"></script>
</head>
<body onload="document.formTeste.strFrase.focus()"><center>
<form name="formTeste" action="ajax1.php" method="post"
id="formTeste">
<table cellspacing="2" cellpadding="3" border="0" width="60%">
<tr>
<th colspan="2"> Teste de Comunicação AJAX </th>
</tr>
<tr>
<td>Frase:</td>
<td align="left"> <input type="text" name="strFrase" maxlength="80" size="80"
id="strFrase"/> </td>
</tr>
<tr>
<td nowrap>Valor1 Recebido pelo Servidor:</td>
<td align="left"><input type="text" name="strValor1" maxlength="80" size="80"
id="strValor1"/></td>
</tr>
<tr>
<td nowrap>Valor2 Recebido pelo Servidor:</td>
<td align="left"><input type="text" name="strValor2" maxlength="80" size="80"
id="strValor2"/></td>
</tr>
<tr>
<td colspan="2" align="center"> <input type="button" name="btnSubmit" value="Submeter Frase"
id="btnSubmit" onClick="fAjaxEnviaArgumentos('ajax2.php',document.formTeste.strFrase.value)"/>
</td>
</tr>
</table>
</form>
</center></body>
</html>