Ejemplo de formulario por ASP. Se envia a si mismo.
ASP distingue la forma de recibir las variables si son por GET o
POST utilizando distintas funciones.
ASP distingue la forma de recibir las variables si son por GET o
POST utilizando distintas funciones.
<!-- ejemplo de formulario -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Pagina ASP 08 - Ejemplo de formulario POST</title>
</head>
<body>
Ejemplo de formulario <br>
<table>
<form name="formulario" action="asp08.asp" method="post">
<input type="hidden" name="accion" value="envio">
<tr>
<td>nombre
</td>
<td><input type="text" name="nombre">
</td>
</tr>
<tr>
<td>apellidos
</td>
<td><input type="text" name="apellidos">
</td>
</tr>
<tr>
<td>descripcion
</td>
<td><textarea name="desc"></textarea>
</td>
</tr>
<tr>
<td>true/false
</td>
<td><input type="checkbox" name="que">
</td>
</tr>
<tr>
<td><input type="submit" value="mandalo">
</td>
<td><input type="reset" value="vacia campos">
</td>
</tr>
</form>
</table>
<hr>
<%
'Request.QueryString es para los GET
'Request.Form es para los POST
if (Request.Form("accion") = "envio") then
Response.write("Tu nombre es: " & Request.Form("nombre") & "<br>")
Response.write("Tu apellido es: " & Request.Form("apellidos") & "<br>")
Response.write("Tu descripcion es: " & Request.Form("desc") & "<br>")
Response.write("Tu checkbox es: " & Request.Form("que") & "<br>")
end if
%>
</body>
</html>
4 comments |
PELMAlink |
jaro
PS offtopic watch movies online yes all new movies here
Dating service for military officers. Ashley greene dating jackson rathbone, dating farnsworth.
Sarahbelle dating du, dating conestoga. Tranny dating in ct.
Rapidshare and dating. Questions for christian dating, dating trebloc.
Dating james creek, dating brockway. Free online dating software.