Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Passare dati tra form

  1. #1

    Passare dati tra form

    Ciao,
    io ho una form con dei radio button sono una decina dovrei fare in modo che l'utente selezioni uno dei radio button e poi il valore selezionato venga stampato su un'altra pagina (è un carrello)
    come faccio a memorizzare il valore e poi visualizzarlo in un'altra pagina?

    grazie
    ciao

  2. #2
    Utente di HTML.it L'avatar di diegoctn
    Registrato dal
    May 2001
    Messaggi
    2,118
    Con una session.

    session("pippo")=Request.Form("paperino")

    ma non è molto pratico......però se vuoi mantenere il valore per l'intero ciclo di navigazione del sito non hai molto altro.....

  3. #3

    Passare dati tra form

    MA la session dovrà essere presente nella prima pagina o nella seconda? il valore di session("pippo")= a cosa corisponde nella mia form?

    grazie

  4. #4
    Utente di HTML.it L'avatar di diegoctn
    Registrato dal
    May 2001
    Messaggi
    2,118
    Allora......da pagina a pagina basta fare:

    xxx=Request.Form(valore_del_radio)

    e poi spari quella varibile xxx dove vuoi......


    comunque........stampa a video la form e ti dico cosa fare.....

  5. #5

    Passare dati tra form

    <td><input type="radio" name="scelta" value="<%=pprice%>" /></td>
    <td><div align="left"><span class="overlays">Formato: <%=rs("pmisura1")%></span></div></td>
    <td><div align="left"><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    </span></span>
    <span class="overlays">
    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice")) %>
    </span> <span class="overlays">
    <% end if %>
    </span></div></td>
    </tr>
    <tr>
    <td><div align="center">
    <input type="radio" name="scelta" value="<%=pprice2%>" />
    </div></td>
    <td width="130" height="15" align="left" valign="middle"><span class="overlays">Formato: <%=rs("pmisura2")%></span></td>
    <td height="15" align="center" valign="top"><div align="left"><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice2")) %>
    </span>
    <% end if %>
    </span></div></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" value="<%=rs("pprice3")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura3")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% elseif cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice3")) %>
    </span>
    <% end if %>
    </span></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" value="<%=rs("pprice4")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura4")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice4")) %>
    </span>
    <% end if %>
    </span></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" value="<%=rs("pprice5")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura5")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice5")) %>
    </span>
    <% end if %>
    </span></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" value="<%=rs("pprice6")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura6")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice6")) %>
    </span>
    <% end if %>
    </span></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" value="<%=rs("pprice7")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura7")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice7")) %>
    </span>
    <% end if %>
    </span></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" id="radio" value="<%=rs("pprice8")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura8")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice8")) %>
    </span>
    <% end if %>
    </span></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" id="radio" value="<%=rs("pprice9")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura9")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice9")) %>
    </span>
    <% end if %>
    </span></td>
    </tr>
    <tr>
    <td><input type="radio" name="scelta" id="radio" value="<%=rs("pprice10")%>" /></td>
    <td><span class="overlays">Formato: <%=rs("pmisura10")%></span></td>
    <td><span class="overlays"><span class="style4">
    <% if noprice=true then %>

    <% else
    if cDbl(rs("pListPrice"))<>0.0 then response.write (xxPrice) %> Prezzo:
    <% response.write FormatEuroCurrency(rs("pPrice10")) %>
    </span>
    <% end if %>
    </span></td>

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 © 2026 vBulletin Solutions, Inc. All rights reserved.