Bonjour,
Voila je n'y connais rien en HTML ni Javascript, et après un petit temps j'ai produit un bout de code qui fonctionne sous Internet Explorer mais pas sous FireFox. Voilà le code

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
<head>
	<script language=javascript>
	function redirige()
	{
		if ((choix(0).checked)== 1)
		{
		document.location.href="http://krz.blogsite.org/nr.html";
		}
		if ((choix(1).checked)== 1)
		{
		document.location.href="http://krz.blogsite.org/se.html";
		}
		if ((choix(2).checked)== 1)
		{
		document.location.href="http://krz.blogsite.org/ar.html";
		}
		if ((choix(3).checked)== 1)
		{
		document.location.href="http://krz.blogsite.org/la.html";
		}
		if ((choix(4).checked)== 1)
		{
		document.location.href="http://krz.blogsite.org/au.html";
		}
	}
	</script>
</head>
  <body>
  <div style="width:200px;text-align:center">
  <img src="http://img211.imageshack.us/img211/8266/staarwarlo8.jpg">
  <table>
    <tr>
        <td valign="middle" style="height:200px;">
            <div>
				<table>
				<tr>
				<td><input type="radio" name=choix value=1>Nouvelle République</td>
				</td>
				<tr>
				<td><input type="radio" name=choix value=2>Séparatistes</td>
				</td>
				<tr>
				<td><input type="radio" name=choix value=3>Alliance Rebelle</td>
				</td>
				<tr>
				<td><input type="radio" name=choix value=4>L'Ancienne République</td>
				</td>
				<tr>
				<td><input type="radio" name=choix value=5 checked>Autres</td>
				</td>
				</table>
			</div>            
        </td>
    </tr>
	</table>
	<input type=button onclick="redirige();" value="Suivant"><br>
	</div>				
	</body>
</html>


J'explique vite fais ce que je veux faire. 5 boutons radio, l'utilisateur fait un choix, et se retrouve redirigé sur une autre page suivant ce qu'il a choisis.
Alors mon code est surement pas terrible vu que je n'y connais rien... Si quelqu'un pouvait m'expliquer pourquoi FF me dis que "choix n'est pas définit" alors qu'IE le prend très bien, et si possible un peu d'aide sur ce que je dois faire pour résoudre ce problème.


Cordialement, KRz Yamaneko.