Exemplo 5 – Exemplo de Formulário de pesquisa.

Formulário html

[codesyntax lang="html4strict"]
<html> 
<head> 
<title>Scipt5</title> 
</head> 
<body> 
<h3>Modelo de Formulário para Pesquisas</h3> 
<form action="/cgi-bin/wxis.exe" method="post"> 
<input type="hidden" name="IsisScript" value="curso/script5.xis"> 
Digite sua expressão de pesquisa<br> 
<input type="text" name="expressao"> 
<input type="submit" value="Pesquisar"> 
</form> 
</body> 
</html>
[/codesyntax]

Script

[codesyntax lang="html4strict"]
<section>
<display><pft>'Content-type: text/html'/#</pft></display>
<field action="cgi" tag="2001">expressao</field>
<do task="search">
<parm name="db">C:\bases\livro\livro</parm>
<parm name="gizmo">C:\bases\gizmo\asc2ans</parm>
<parm name="expression"><pft>v2001</pft></parm>
<loop>
<display>
<pft>
newline('<br>')@\bases\livro\form1.pft
'<hr>'
</pft>
</display>
</loop>
</do>
</section>
[/codesyntax]

Was this helpful?

0 / 0

Deixe uma resposta 0

Your email address will not be published. Required fields are marked *