Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.24 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <title> Pagina </title>
  4. </head>
  5. <body> 
  6.    
  7.     <form name="miForm" method="post" action="carro.asp">
  8.         Productos:  <select name="productos">
  9.                     <option value="guitarra">Guitarra</option>
  10.                     <option value="pc">PC</option>
  11.                     <option value="tv">TV</option>
  12.                     </select>
  13.         Cantidad: <input type="text" name="textbox1">
  14.         Precio: <input type="text" name="textbox2">
  15.         <br/><br/><br/>
  16.         <input type="submit" name"Boton" value="Agregar el carro" >
  17.         <br/><br/><br/>
  18.         <table border="1">
  19.         <tr>
  20.         <td>Producto</td>
  21.         <td>Cantidad</td>
  22.         <td>Precio</td>
  23.         <td>Total</td>
  24.         </tr>
  25.         <tr>
  26.         <td><%response.write(session("compra"))%></td>
  27.         <td><%response.write(session("compra"))%></td>
  28.         <td><%response.write(session("compra"))%></td>
  29.         <td>Celda </td>
  30.         </tr>
  31.         <tr>
  32.         <td></td>
  33.         <td></td>
  34.         <td></td>
  35.         <td>Celda </td>
  36.         </tr>
  37.         <tr>
  38.         <td></td>
  39.         <td></td>
  40.         <td></td>
  41.         <td>Celda </td>
  42.         </tr>
  43.         </table>
  44.         <br/><br/><br/>
  45.         Total:
  46.     </form>
  47.    
  48.     <%
  49.     p = request.form("productos")
  50.     c = request.form("textbox1")
  51.     pr = request.form("textbox2")
  52.     session("compra") = session("compra") & "|" & "," & p & "," & c & "," & pr
  53.     ARR = split("|", trim(session("compra")))
  54.     response.write(ARR(0)) 
  55.     %>
  56. </body>
  57. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement