salut ,

j ai un formulaire avec une requete qui rempli un tableau et chaque ligne a une checkbox, et lorsque je submitte vers un autre form , les checkbox que j ai coché sont dans url ( c'est ce que je veux ) mais comment recuperer ces valeurs apres?

voici mon form:

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
 
 
echo"<form name='formstatus' action='testvol.php'>";
	echo"<input type='submit' name='ok' value='Close' >";
	$i=0;	//pour index des checkboxBG
	$j=0;	//pour index des checkboxRO
 
	$result1 = $db->sql_query($sql1 .$order. " LIMIT ". $pgno*$maxrow . "," . ($maxrow+1));
 
	//echo $sql1 .$order. " LIMIT ". $pgno*$maxrow . "," . ($maxrow+1);
 
	while($row1 = $db->sql_fetchrow($result1)) 
	{
 
 
 
			$volume= $row1['volume'];
			/*echo "volume : ".$volume;
			echo"<br>";
			echo"<br>";*/
 
			$vol=substr($volume,0,9);//separation des volumes
 
			if ($volold<>$vol)//separation des volumes
			{
 
echo <<< myBlock
 
			  <table align="center" width="400" border="0" cellspacing="1" cellpadding="0">
 
			  <tr>				
 
				<th width="100" scope="col">Volume</th>
				<th width="100" scope="col">Status</th>
				<th width="50" scope="col">BG</th>
				<th width="100" scope="col">Status</th>
				<th width="50" scope="col">RO</th>
 
			  </tr>\n
 
myBlock;
 
 
			$volold=$vol;
			}//separation des volumes
 
				$sql2="select status,lv from volumeflow where volumeflow.lv='BG' and volume='".$volume."'";
 
				$result2 = $db->sql_query($sql2 .$order. " LIMIT ". $pgno*$maxrow . "," . ($maxrow+1));
 
				while($row2 = $db->sql_fetchrow($result2)) 
				{
 
				$statusBG= $row2['status'];
				/*echo "status : ".$status;
				echo"<br>";
				echo"<br>";*/
 
				$lvBG= $row2['lv'];
				/*echo "lv : ".$lv;
				echo"<br>";
				echo"<br>";*/
 
						$sql3="select status,lv from volumeflow where volumeflow.lv='RO' and volume='".$volume."'";
 
						$result3 = $db->sql_query($sql3 .$order. " LIMIT ". $pgno*$maxrow . "," . ($maxrow+1));
 
						while($row3 = $db->sql_fetchrow($result3)) 
						{
 
						$statusRO= $row3['status'];
						/*echo "status : ".$status;
						echo"<br>";
						echo"<br>";*/
 
						$lvRO= $row3['lv'];
						/*echo "lv : ".$lv;
						echo"<br>";
						echo"<br>";*/
 
 
echo <<< myBlock
		<tr class="$row_class" onMouseover="this.className='highlight_a';" onMouseout="this.className='$row_class';">
 
 
			<td align="center">$volume</td>
			<td align="center">$statusBG</td>
			<td align="center"><input type="checkbox" name="checkboxBG$i" value="$volume" onClick="selectrow(document.formstatus.checkboxBG$i.name,document.formstatus.checkboxRO$j.name);" ></td>			
			<td align="center">$statusRO</td>
			<td align="center"><input type="checkbox" name="checkboxRO$j" value="$volume" onClick="selectrow(document.formstatus.checkboxRO$j.name,document.formstatus.checkboxBG$i.name);"></td>
 
		</tr>\n
 
myBlock;
				$i++;
				$j++;
						}
				}
 
		}//fin du while
 
echo"</form>";
 
 
$checkboxBG=$_GET['checkboxBG'];
$checkboxRO=$_GET['checkboxRO'];
 
$value=$_GET['value'];
 
 
$ilongstrlen($checkboxBG);
$iselected=substr($checkboxBG,10,$ilong);
$iselected==$_GET['iselected'];
echo" iselected = ".$iselected;
 
 
$jlongstrlen($checkboxRO);
$jselected=substr($checkboxRO,10,$jlong);
$jselected==$_GET['jselected'];
echo" jselected = ".$jselected;

mais moi le seule soucis c'est quand je submitte tout ce que j ai coché est dans url mais comment je recupere ces valeurs dans url

dans url :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
 
http://dd2_dev/modules/testvol.php?ok=Close&checkboxBG4=Volume-00-05&checkboxRO4=Volume-00-05&checkboxBG9=Volume-00-10&checkboxRO9=Volume-00-10&checkboxBG13=Volume-00-14&checkboxRO13=Volume-00-14