Bonjour,
Voilà mon souci
Je précise, je suis grand débutant.
J'imagine dans un formulaire, de faire remplir des cases à cocher par des utilisateurs sous forma d'un "tableau" type bataille navale...
Ce qui me donne :
<?
for($vertic = 1; $vertic < 11; $vertic++) {
?>
<tr>
<?
for($horiz = 1; $horiz < 11; $horiz++) {
?>
<td width="68" height="40" background="../../images/horiz_vertic/<? echo "h".$horiz."_v".$vertic; ?>.jpg" align="center" bgcolor="#CCCCCC">
<input type="radio" name="alveole_h_<? echo $horiz; ?>_v_<? echo $vertic; ?>" value="1000" /></td>
<? // fin horiz
}
?>
</tr>
<? // fin vartic
}
?>
Ma question est comment je récupère ces données dans ma page qui va bien du type :
for($vertic = 1; $vertic < 11; $vertic++) {
for($horiz = 1; $horiz < 11; $horiz++) {
$alveole="$alveole_h_'.$horiz.'_v_'.$vertic'";
echo $alveole;
// fin horiz
}
// fin vartic
}
Je n'arrive pas à récupere la valeur alvéole, sauf si bien entendu je l'écris en dur....
$alveole=$alveole_h_1_v_1;
En fait j'ai toujours du mal avec les " et les '
Si quelqu'un peut m'aider....
Configuration: Windows XP
Internet Explorer 7.0