User avatar by pello in January 1, 1970, 1:00 am
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.
<!-- 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 |  1515 reads
0 of 0
make a comment
Comments
#1  user avatar Cloaked Anonymous says:
ola
jaro
+-0 of 0
in January 1, 1970, 1:01 am
#2 leapypeshes user avatar says:
iplpijhzarayy kohls printable coupons Zooowozykfredet
+-0 of 0
in July 1, 2011, 4:28 pm
#3 Watch Movies user avatar says:
i agree

PS offtopic watch movies online yes all new movies here
+-0 of 0
in July 13, 2011, 10:54 am
#4 slefekilk user avatar says:
Hot young women for sex dating, foamy dating advice. Attractive dating woman.
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.
+-0 of 0
in August 19, 2011, 12:38 am
Show all fields