Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/07/2009, 16:57
lauchalp95
 
Fecha de Ingreso: julio-2006
Mensajes: 254
Antigüedad: 20 años, 3 meses
Puntos: 0
Como contar cantidad de respuestas

Tengo un formulario que es así:
Código PHP:
 <form id="form1" name="form1" method="post" action="">
              <
p align="center"><strong>1) Si tuvieras qe escoger una profesión en el mundo de los muggles ¿Por cuál optarias?</strong><br />
                
a) Juez o maestro -H 
                  
<label>
                  <
input type="radio" name="1" id="radio" value="h" />
                  </
label>
                <
br />
                
b) Médico o cientifico -R
                
<input type="radio" name="1" id="radio2" value="r" />
                <
br />
                
c) Político -S
                
<input type="radio" name="1" id="radio3" value="s" />
                <
br />
                
d) Bombero -G
                
<input type="radio" name="1" id="radio4" value="g" />
                <
br />
  <
strong>2) ¿Cuáles son tus vacaciones ideales?</strong><br />
                
a) Roma - R
                
<input type="radio" name="2" id="radio5" value="r" />
                <
br />
                
b) París, Londres, Nueva York -S
                
<input type="radio" name="2" id="radio6" value="s" />
                <
br />
                
c) Asia - H
                
<input type="radio" name="2" id="radio7" value="h" />
                <
br />
                
d) Cualquier país exótico -G
                
<input type="radio" name="2" id="radio8" value="g" />
                <
br />
  <
strong>3) ¿Cuál es tu pelicula favorita?</strong><br />
                
a) Las de Indiana Jones -G
                
<input type="radio" name="3" id="radio9" value="g" />
                <
br />
                
b) Buscando a Nemo - H
                
<input type="radio" name="3" id="radio10" value="h" />
                <
br />
                
c) Oceans Eleven -S
                
<input type="radio" name="3" id="radio11" value="s" />
                <
br />
                
d) Grease - R
                
<input type="radio" name="3" id="radio12" value="r" />
                <
br />
  <
strong>4) ¿Cuál es el objeto de tus sueños?</strong><br />
                
a) El mapa del merodeador -S
                
<input type="radio" name="4" id="radio13" value="s" />
                <
br />
                
b) La recordadora -H
                
<input type="radio" name="4" id="radio14" value="h" />
                <
br />
                
c) Un escreguto - R
                
<input type="radio" name="4" id="radio15" value="r" />
                <
br />
                
d) Una Nimbus 2000
                
<input type="radio" name="4" id="radio16" value="g" />
                <
br />
  <
strong>5) ¿Cuál es tu materia favorita?</strong><br />
                
a) DCAO -G
                
<input type="radio" name="5" id="radio17" value="g" />
                <
br />
                
b) Pociones -S
                
<input type="radio" name="5" id="radio18" value="s" />
                <
br />
                
c) CCM - H
                
<input type="radio" name="5" id="radio19" value="h" />
                <
br />
                
d) Encantamientos e HM -R
                
<input type="radio" name="5" id="radio20" value="r" />
                <
br />
  <
strong>6) ¿A que le dedicas tu tiempo libre?</strong><br />
                
a) A gastar bromas -S
                
<input type="radio" name="6" id="radio21" value="s" />
                <
br />
                
b) Leer un buen libro -R
                
<input type="radio" name="6" id="radio22" value="r" />
                <
br />
                
c) Juegas ajedrez con un amigo -H
                
<input type="radio" name="6" id="radio23" value="h" />
                <
br />
                
d) Quidditch, Fútbol -G
                
<input type="radio" name="6" id="radio24" value="g" />
                <
br />
  <
strong>7) ¿Que epoca de la historia te gustaria visitar?</strong><br />
                
a) La antigüedad -G
                
<input type="radio" name="7" id="radio25" value="g" />
                <
br />
                
b) La edad media -S
                
<input type="radio" name="7" id="radio26" value="s" />
                <
br />
                
c) La epoca de miguel angel -R
                
<input type="radio" name="7" id="radio27" value="r" />
                <
br />
                
d) La nuestra -H
                
<input type="radio" name="7" id="radio28" value="h" />
              </
p>
              <
p align="center">
                <
label>
                <
input type="submit" name="button" id="button" value="enviar" />
                </
label>
                <
br />
                            </
p>
              <
p align="center">&nbsp;</p>
              <
p align="center"></p>
            </
form> 
Yo quiero contar cuantas respuestas H,G,S o R hay.
¿Se puede de alguna manera?