Visualizzazione dei risultati da 1 a 4 su 4

Discussione: dati form in 2 colonne

  1. #1

    dati form in 2 colonne

    Ho questo script che mi richiama i dati da un form e li mette in una singola colonna. Come posso fare per farmeli dividere in 2 colonne?


    codice:
    ' Richiama i prodotti con valori > 0
    for each objField in Request.Form
    	if Left(objField, 8) = "prod_id_" AND IsNumeric(Request.Form(objField)) then
    		if Clng(Request.Form(objField)) > 0 then
    			Redim preserve aryProducts(ii)
    			aryProducts(ii) = Replace(objField, "prod_id_", "")
    			ii = ii + 1
    		end if	
    	end if
    next
    
    jj = 0
    strProducts = "<table border=""1"" bordercolor=""#000000"" cellpadding=""5""><tr><th>Prodotto</th><th>Codice</th><th>Quantità</th></tr>"
    for jj = 0 to Ubound(aryProducts)
    	strProducts = strProducts & "<tr>" &_
    	"<td>" & Request.Form("prod_descr_" & aryProducts(jj)) & "</td>" &_
    	"<td>" & Request.Form("prod_code_" & aryProducts(jj)) & "</td>" &_
    	"<td>" & Request.Form("prod_id_" & aryProducts(jj)) & "</td>" &_
    	"</tr>"
    next
    strProducts = strProducts & "</table>"

  2. #2
    Utente di HTML.it L'avatar di fraude
    Registrato dal
    Feb 2004
    Messaggi
    2,870
    In italiano?

  3. #3
    Utente di HTML.it L'avatar di fraude
    Registrato dal
    Feb 2004
    Messaggi
    2,870
    Ah forse ho capito, ma non è ASP è HTML:
    codice:
    for jj = 0 to Ubound(aryProducts)
    	strProducts = strProducts & "<tr>" &_
    	"<td>" & Request.Form("prod_descr_" & aryProducts(jj)) & "</td>" &_
    "</tr>"&_
    "<tr>" &_
    	"<td>" & Request.Form("prod_code_" & aryProducts(jj)) & "</td>" &_
    "</tr>"&_
    "<tr>" &_
    	"<td>" & Request.Form("prod_id_" & aryProducts(jj)) & "</td>" &_
    	"</tr>"
    next

  4. #4

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.