Il problema era in java script, tramite un if dovrebbe : se si seleziona martedi' o giovedi' il costo del biglietto era di 4 X N biglietti altrimenti se si seleziona altri giorni il costo era di 7 X N biglietti.
html :
<html>
<head>
<title>prenot</title>
</head>
<body>
<div id="info">
<h1>PREZZI DI INGRESSO :</h1>
<br><br>
<h2>MARTEDI' E GIOVEDI' :
<br><br>
BIGLIETTO INTERO : 4€
<br><br>
BIGLIETTO RIDOTTO : 4€
<br><br>
TUTTI GLI ALTRI GIORNI :
<br><br>
BIGLIETTO INTERO : 7€
<br><br>
BIGLIETTO RIDOTTO : 7€</h2>
</div>
<div id="img2">
<img src="tic.jpg" class="img2">
</div>
<div id="img3">
<img src="a.jpg" class="img3">
</div>
<div id="prenota">
<form name="mio_modulo" method="post">
<h1>Seleziona Il giorno : </h1>
<ul id="b"><h4>
<li class="ok"><input type="radio" name="gender" value="a">Martedi' o giovedi'</li>
<br><br>
<li class="ok"><input type="radio" name="gender" value="b">Altri giorni</li>
</h4>
</ul>
<br>
<br>
<h1>Seleziona Il film : </h1>
<ul id="b"><h4>
<li class="ok"><input type="radio" name="prov" value="Authoban-Fuori Controllo">Authoban-Fuori Controllo</li><br><br>
<li class="ok"><input type="radio" name="prov" value="Resident Evil 6">Resident Evil 6</li><br><br>
<li class="ok"><input type="radio" name="prov" value="Moonlight">Moonlight</li><br><br>
<li class="ok"><input type="radio" name="prov" value="Manchester by the Sea">Manchester by the Sea</li><br><br>
<li class="ok"><input type="radio" name="prov" value="David Lynch: The Art Life">David Lynch: The Art Life</li><br><br>
<li class="ok"><input type="radio" name="prov" value="The Great Wall">The Great Wall</li>
</h4></ul><br><br>
<h1>Inserisci il numero di biglietti da acquistare : </h1><input type="text" name="n1"><br><br>
<h1>Totale : </h1><input type="text" name="ris"><br><br>
<input type="button" class="bottone" value="Calcola Totale" onclick="somma()">
</form>
<script>
function somma(){
if(gender=="a"){
var a=document.mio_modulo.n1.value;
document.mio_modulo.ris.value=parseInt(a)*parseInt (7)+"€";
}
else{
var a=document.mio_modulo.n1.value;
document.mio_modulo.ris.value=parseInt(a)*parseInt (4)+"€";
}
};
</script>
</div>
</div>
</body>
</html>
CSS:
body {
background-image: url("sfondo.jpg"); /* sfondo */
background-attachment: fixed;
overflow: auto;
}
p.verdana {
font-style: normal; /* stile del testo sul paragrafo */
font-family: Arial;
text-align: center;
}
#prenota{
position: relative;
margin-top: 100px;
margin-left: 40px;
margin-bottom: 70px;
}
.bottone{
background-color: #006699;
color: white;
border-color: #006699;
}
#pagina{
overflow: auto;
}
#info{
margin-top:70px;
margin-left: 45px;
margin-bottom: 0px;
text-align: center;
}
.img2{
width: 25%;
position: absolute;
margin-left: 1080px;
margin-top: 30px;
}
.img3{
width: 29%;
position: absolute;
margin-left: 1020px;
margin-top: 470px;
}
.bottone:active{
background-color: #CC9900;
}
.bottone:focus{
background-color: #CC9900;
}
ul#b{
background-color: transparent;
}
li.ok{
}
GRAZIE