salve a tutti
ho una pagina di configurazione prodotti che recupera la disponibilita di un dominio per poi associargli delle opzioni (es: vari pacchetti di hosting)
le variabili che recupera sono:
<%
wdominio = request.querystring("dom")
wext = request.querystring("ext")
%>
adesso ho uno script asp che mi fa un controllo sulle opzioni da associare al dominio
Codice PHP:
function resetta()
{
window.document.frmPreventivo.reset()
document.frmPreventivo.elements['item[5]'][1].disabled false;
}

function 
check()
{
var 
opz1 document.frmPreventivo.elements['item[0]']
var 
opz2 document.frmPreventivo.elements['item[5]']
if(
opz1[2].checked && !opz2[0].checked && !opz2[1].checked){alert("ATTENZIONE\nSelezionare il supporto"); return false;}else
if(
opz1[3].checked && !opz2[0].checked && !opz2[1].checked){alert("ATTENZIONE\nSelezionare il supporto"); return false;}else
    if (!
document.frmPreventivo.contratto.checked)
        {
alert ("E' necessario autorizzare le condizioni contrattuali") ; return false}
    }
    function 
ImpostaPiano(RadioValue){
    if(
RadioValue == || RadioValue == 5){
    
document.frmPreventivo.elements['item[5]'][0].checked true;
    
document.frmPreventivo.elements['item[5]'][1].disabled true;
    }else{
    
document.frmPreventivo.elements['item[5]'][0].checked false;
    
document.frmPreventivo.elements['item[5]'][1].disabled false;
    }

questo e il form:
Codice PHP:
<table cellspacing="1" cellpadding="0" width="435" border="0" height="364">
                                <
form name="frmPreventivo" action="configurato.asp" method="post">
                                    <
input type="hidden" value="1" name="frmAction"> <input type="hidden" value="<%=wdominio%>" name="Dominio"> <input type="hidden" value="<%=wext%>" name="ext"> <input type="hidden" value="<%=StrTipo_Operazione%>" name="tipo_operazione"><tbody>
                                        <
tr height="26">
                                            <
td width="433" height="26" class="H3">
                                                <
div align="center">
                                                    
                                
                                                    
Registra il tuo dominio e configura il servizio

                                                
</div>
                                            </
td>
                                        </
tr>
                                        <
tr>
                                            <
td valign="top" width="433">
                                                <
div align="center">
                                                    <
table height="335" cellspacing="0" cellpadding="0" width="420" border="0" class="testo">
                                                        <
tbody>
                                                            <
tr height="167">
                                                                <
td valign="top" width="418" height="167">
                                                                    <
table cellspacing="2" cellpadding="2" width="423" border="0">
                                                                        <
tbody>
                                                                            <
tr height="18">
                                                                                <
td class="H1" colspan="3" bgcolor="#eeeeee" width="415" height="19"><font color="black">Dominio: [b][url]www.[/url]<%=wdominio1%>[/b]</font></td>
                                                                            </
tr>
                                                                            <
tr height="13">
                                                                                <
td class="H1" colspan="3" bgcolor="#0d3f96" width="415" height="13">
                                                                                    <
div>
                                                                                        [
b]  Tipologia Servizio [/b]</div>
                                                                                </
td>
                                                                            </
tr>
                                                                            <
tr height="19">
                                                                                <
td class="H1" bgcolor="#5791c6" width="242" height="19"><input class="noinput" type="radio" value="1" name="item[0]" checkedSolo dominio</td>
                                                                                <
td class="H1" bgcolor="#eeeeee" width="34" height="19"></td>
                                                                                <
td class="H5" valign="middle" bgcolor="#eeeeee" width="127" height="19">
                                                                                    <
div align="center">
                                                                                        <
font color="black"><%=wprezzo%> &#128; / anno    </font></div>
                                                                                    
<div align="right">
                                                                                        <
font color="black"></font></div>
                                                                                </
td>
                                                                            </
tr>
                                                                            <
tr height="14">
                                                                                <
td class="H1" bgcolor="#5791c6" width="242" height="14"><input class="noinput" type="radio" value="2" name="item[0]" onclick="ImpostaPiano(this.value)"> [url="#"]Basic Plain[/url]</td>
                                                                                <
td class="H1" bgcolor="#eeeeee" width="34" height="14">[img]images/icon_linux.gif[/img]</td>
                                                                                <
td class="H5" valign="middle" bgcolor="#eeeeee" width="127" height="14">
                                                                                    <
div align="center">
                                                                                        <
font color="black">30,00 &#128; / anno </font></div>
                                                                                
</td>
                                                                            </
tr>
                                                                            <
tr height="14">
                                                                                <
td class="H1" bgcolor="#5791c6" width="242" height="14"><input class="noinput" type="radio" value="3" name="item[0]" onclick="ImpostaPiano(this.value)"> [url="#"]Silver Plain[/url]</td>
                                                                                <
td class="H1" bgcolor="#eeeeee" width="34" height="14">[img]images/icon_linux.gif[/img][img]images/icon_win.gif[/img]</td>
                                                                                <
td class="H5" valign="middle" bgcolor="#eeeeee" width="127" height="14">
                                                                                    <
div align="center">
                                                                                        <
font color="black">50,00 &#128; / anno </font></div>
                                                                                
</td>
                                                                            </
tr>
                                                                            <
tr height="14">
                                                                                <
td class="H1" bgcolor="#5791c6" width="242" height="14"><input class="noinput" type="radio" value="4" name="item[0]" onclick="ImpostaPiano(this.value)"> [url="#"]Golden Plain[/url]</td>
                                                                                <
td class="H1" bgcolor="#eeeeee" width="34" height="14">[img]images/icon_linux.gif[/img][img]images/icon_win.gif[/img]</td>
                                                                                <
td class="H5" valign="middle" bgcolor="#eeeeee" width="127" height="14">
                                                                                    <
div align="center">
                                                                                        <
font color="black">100,00 &#128; / anno   </font></div>
                                                                                
</td>
                                                                            </
tr>
                                                                            <
tr height="14">
                                                                                <
td class="H1" bgcolor="#5791c6" width="242" height="14"><input class="noinput" type="radio" value="5" name="item[0]" onclick="ImpostaPiano(this.value)"> [url="#"]Hosting XXL[/url]</td>
                                                                                <
td class="H1" bgcolor="#eeeeee" width="34" height="14">[img]images/icon_linux.gif[/img]</td>
                                                                                <
td class="H5" valign="middle" bgcolor="#eeeeee" width="127" height="14">
                                                                                    <
div align="center">
                                                                                        <
font color="black">35,00 &#128; / anno </font></div>
                                                                                
</td>
                                                                            </
tr>
                                                                        </
tbody>
                                                                    </
table>
                                                                </
td>
                                                            </
tr>
                                                            <
tr height="73">
                                                                <
td valign="top" width="418" height="73">
                                                                    <
table cellspacing="2" cellpadding="2" width="422" border="0">
                                                                        <
tbody>
                                                                            <
tr height="13">
                                                                                <
td class="H1" colspan="2" bgcolor="#0d3f96" width="414" height="13">
                                                                                    <
div class="lista2p">
                                                                                        [
b]  Piattaforma[/b]</div>
                                                                                </
td>
                                                                            </
tr>
                                                                            <
tr>
                                                                                <
td class="H1" bgcolor="#5791c6" width="282"><input class="noinput" type="radio" value="2" name="item[5]"Supporto  Linux</td>
                                                                                <
td valign="bottom" bgcolor="#eeeeee" width="126">
                                                                                    <
div align="center">
                                                                                        [
img]images/icon_linux.gif[/img]</div>
                                                                                </
td>
                                                                            </
tr>
                                                                            <
tr>
                                                                                <
td class="H1" bgcolor="#5791c6" width="282"><input class="noinput" type="radio" value="1" name="item[5]"Supporto Windows</td>
                                                                                <
td valign="bottom" bgcolor="#eeeeee" width="126">
                                                                                    <
div align="center">
                                                                                        [
img]images/icon_win.gif[/img]</div>
                                                                                </
td>
                                                                            </
tr>
                                                                        </
tbody>
                                                                    </
table>
                                                                </
td>
                                                            </
tr>
                                                            <
tr height="45">
                                                                <
td valign="top" width="418" height="45">
                                                                    <
table cellspacing="2" cellpadding="2" width="422" border="0">
                                                                        <
tbody>
                                                                            <
tr height="13">
                                                                                <
td class="H1" colspan="2" bgcolor="#0d3f96" width="414" height="13">
                                                                                    <
div class="lista2p">
                                                                                        [
b]  Servizi aggiuntivi[/b]</div>
                                                                                </
td>
                                                                            </
tr>
                                                                            <
tr>
                                                                                <
td class="H1" bgcolor="#5791c6" width="281"><input class="noinput" type="radio" value="1" name="item[3]"BakeUp mensile</td>
                                                                                <
td class="H1" valign="bottom" bgcolor="#eeeeee" width="127">
                                                                                    <
div align="right">
                                                                                        <
font color="black">60,00 € anno </font></div>
                                                                                </
td>
                                                                            </
tr>
                                                                        </
tbody>
                                                                    </
table>
                                                                </
td>
                                                            </
tr>
                                                            <
tr height="20">
                                                                <
td valign="middle" width="418" height="20"><input type="checkbox" name="contratto" value="autorizzata">[url="#"]Condizioni contrattuali[/url]</td>
                                                            </
tr>
                                                            <
tr height="30">
                                                                <
td valign="middle" width="418" height="30">
                                                                    <
div align="center">
                                                                        <
input onclick="return check();" type="image" value=Invia name=B1 src="images/invia.gif" tabindex="10"> [url="#"][img]images/reset.gif[/img][/url]</div>
                                                                </
td>
                                                            </
tr>
                                                        </
tbody>
                                                    </
table>
                                                </
div>
                                            </
td>
                                        </
tr>
                                    </
tbody>
                                </
form>
                            </
table
è possibile far visualizzare e rendere attivo un campo imput type="tex" se la scelta è (solo registrazione dominio con ext diversa dal .it)

in pratica vorrei dare un codice promo che fa risparmiare 2,00 euro sulla sola registrazione dei domini .com, .net, .org, .. tutti tranne il .it

Spero di essermi spiegato!
Grazie anticipatamente!