HTMLWeb. Curso ASP. Código de la Práctica 2.

practica_2.html

<html>
<head>
  <title>HTMLWeb & WebMaster. Curso ASP. Entrega 2. Práctica 2 (I)</title>
</head>
<body bgcolor="#ffff99">
<form name="miForm" action="practica_2.asp" method="post">
<table cellpadding="2" cellspacing="0" border="0" align="center">
  <tr>
    <td>Nombre:</td>
  <td><input type="text" name="nombre"></td>
  </tr>
  <tr>
    <td>Apellidos:</td>
  <td><input type="text" name="nombre"></td>
  </tr>
  <tr>
    <td>Dirección:</td>
  <td><input type="text" name="direccion"></td>
  </tr>
  <tr>
    <td>Equipo de futbol:</td>
  <td>
    <select name="equipo">
      <option value="Real Madrid">Real Madrid</option>
    <option value="Barcelona">Barcelona</option>
    <option value="Atlético de Madrid">Atlético de Madrid</option>
    </select>
  </td>
  </tr>
  <tr>
    <td align="center" height="50"><input type="reset" value="borrar"></td>
  <td align="center"><input type="submit" value="enviar"></td>
  </tr>
</table>
<input type="hidden" name="indice" value="0">
</form>
</body>
</html>

practica_2.asp

<%@ Language="VBScript"%>
<html>
<head>
  <title>HTMLWeb & WebMaster. Curso ASP. Entrega 2. Práctica 2 (II)</title>
</head>
<body bgcolor="#ffff99">
<%
  Dim Nombre, Apellidos, Direccion, Equipo
  Nombre=Request.Form("nombre")
  Apellidos=Request.Form("apellidos")
  Direccion=Request.Form("direccion")
  Equipo=Request.Form("equipo")
  Response.Write("Tu nombre completo es " & Nombre & " " & Apellidos)
  Response.Write("<br>")
  Response.Write("Tu dirección es " & Direccion)
  Response.Write("<br>")
  Response.Write("Tu equipo preferido es el " & Equipo)
%>
</body>
</html>