[PHP] recuperation valeur checkbox
Fermé
dubuducu
Messages postés
391
Date d'inscription
lundi 8 novembre 2004
Statut
Membre
Dernière intervention
19 mai 2010
-
2 juin 2008 à 15:55
thecrazyspy Messages postés 413 Date d'inscription lundi 21 janvier 2008 Statut Membre Dernière intervention 13 novembre 2015 - 3 juin 2008 à 14:55
thecrazyspy Messages postés 413 Date d'inscription lundi 21 janvier 2008 Statut Membre Dernière intervention 13 novembre 2015 - 3 juin 2008 à 14:55
A voir également:
- [PHP] recuperation valeur checkbox
- Easy php - Télécharger - Divers Web & Internet
- Logiciel gratuit calcul valeur nutritionnelle - Télécharger - Santé & Bien-être
- Convertisseur récupération de texte - Guide
- Valeur ascii - Guide
- #Valeur excel somme - Guide
48 réponses
thecrazyspy
Messages postés
413
Date d'inscription
lundi 21 janvier 2008
Statut
Membre
Dernière intervention
13 novembre 2015
43
3 juin 2008 à 14:05
3 juin 2008 à 14:05
derien, reste un erreur quand meme sur le truck lool, et oui tjs, c'est quand ta trois choix, si tant coche deux y'a un message d'erreur, pas important mais il y est
dubuducu
Messages postés
391
Date d'inscription
lundi 8 novembre 2004
Statut
Membre
Dernière intervention
19 mai 2010
4
3 juin 2008 à 14:11
3 juin 2008 à 14:11
Tu es viré !!! :p
Bien ecoute, je viens d'en cocher trois ... aucune erreur detectée !
Puis ce n'est pas bien grave
je te remercie
Bien ecoute, je viens d'en cocher trois ... aucune erreur detectée !
Puis ce n'est pas bien grave
je te remercie
thecrazyspy
Messages postés
413
Date d'inscription
lundi 21 janvier 2008
Statut
Membre
Dernière intervention
13 novembre 2015
43
3 juin 2008 à 14:15
3 juin 2008 à 14:15
voici le code entier de confirmation.php qui est fonctionnel a 100% test et dis moi des nouvelles
<?php
include('bdd.php');
//nombre de ligne affiche dans le tableau = $j
$j=$_POST['variable'];
$cpt = '0'; //compteur tempo
echo '<table bgcolor="#FFFFFF" align="center">'."\n";
// première ligne on affiche les titres dans 4 colonnes
echo '<tr>';
echo '<td><b>Vous avez choisi : </b></td>';
echo '<td width="80" bgcolor="#9f9f9f"><b><u>id</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>departement</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>commentaires</u></b></td>';
echo '</tr>'."\n";
while ( $cpt != $j )
{
if (isset($_POST['option'.$cpt.''])){
if ( $_POST['option'.$cpt.''] != '')
{
$c = $_POST['option'.$cpt.''];
if ( $c != ""){
$sql = "SELECT id,departement,commentaires FROM devis_table WHERE id = '".$c."' ";
$result = mysql_query( $sql) or die( "Erreur : " . mysql_error() );
while($row = mysql_fetch_array($result))
{
echo '<tr>';
echo '<td width="80" bgcolor="#d4d4d4">'.$row['id'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['departement'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['commentaires'].'</td>';
echo '</tr>'."\n";
}
}
}
}
$cpt = $cpt + 1;
}
echo '</table>'."\n";
?>
<?php
include('bdd.php');
//nombre de ligne affiche dans le tableau = $j
$j=$_POST['variable'];
$cpt = '0'; //compteur tempo
echo '<table bgcolor="#FFFFFF" align="center">'."\n";
// première ligne on affiche les titres dans 4 colonnes
echo '<tr>';
echo '<td><b>Vous avez choisi : </b></td>';
echo '<td width="80" bgcolor="#9f9f9f"><b><u>id</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>departement</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>commentaires</u></b></td>';
echo '</tr>'."\n";
while ( $cpt != $j )
{
if (isset($_POST['option'.$cpt.''])){
if ( $_POST['option'.$cpt.''] != '')
{
$c = $_POST['option'.$cpt.''];
if ( $c != ""){
$sql = "SELECT id,departement,commentaires FROM devis_table WHERE id = '".$c."' ";
$result = mysql_query( $sql) or die( "Erreur : " . mysql_error() );
while($row = mysql_fetch_array($result))
{
echo '<tr>';
echo '<td width="80" bgcolor="#d4d4d4">'.$row['id'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['departement'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['commentaires'].'</td>';
echo '</tr>'."\n";
}
}
}
}
$cpt = $cpt + 1;
}
echo '</table>'."\n";
?>
dubuducu
Messages postés
391
Date d'inscription
lundi 8 novembre 2004
Statut
Membre
Dernière intervention
19 mai 2010
4
3 juin 2008 à 14:28
3 juin 2008 à 14:28
celui-ci ne fonctione pas ! mais lautre je l'ai torturé dans tous les sens et c nikel ...
ou vois tu une erreur dans l'ancien ?
<?php
include('bdd.php');
//nombre de ligne affiche dans le tableau = $j
$j=$_POST['variable'];
$cpt = '0'; //compteur tempo
echo '<table bgcolor="#FFFFFF" align="center">'."\n";
// première ligne on affiche les titres dans 4 colonnes
echo '<tr>';
echo '<b>Vous avez choisi : </b><br><br>';
echo '<td width="80" bgcolor="#9f9f9f"><b><u>N° du Devis</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>Départements</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>Commentaires</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>Choix</u></b></td>';
echo '</tr>'."\n";
while ( $cpt != $j )
{
$c = $_POST['option'.$cpt.''];
$cpt = $cpt + 1;
if ( $c != ""){
$sql = "SELECT id,departement,commentaires FROM devis_table WHERE id = '".$c."' ";
$result = mysql_query( $sql) or die( "Erreur : " . mysql_error() );
while($row = mysql_fetch_array($result))
{
echo '<tr>';
echo '<td width="80" bgcolor="#d4d4d4">'.$row['id'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['departement'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['commentaires'].'</td>';
echo '<td bgcolor="#d4d4d4">X</td>';
echo '</tr>'."\n";
}
}
}
echo '</table>'."\n";
?>
ou vois tu une erreur dans l'ancien ?
<?php
include('bdd.php');
//nombre de ligne affiche dans le tableau = $j
$j=$_POST['variable'];
$cpt = '0'; //compteur tempo
echo '<table bgcolor="#FFFFFF" align="center">'."\n";
// première ligne on affiche les titres dans 4 colonnes
echo '<tr>';
echo '<b>Vous avez choisi : </b><br><br>';
echo '<td width="80" bgcolor="#9f9f9f"><b><u>N° du Devis</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>Départements</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>Commentaires</u></b></td>';
echo '<td bgcolor="#9f9f9f"><b><u>Choix</u></b></td>';
echo '</tr>'."\n";
while ( $cpt != $j )
{
$c = $_POST['option'.$cpt.''];
$cpt = $cpt + 1;
if ( $c != ""){
$sql = "SELECT id,departement,commentaires FROM devis_table WHERE id = '".$c."' ";
$result = mysql_query( $sql) or die( "Erreur : " . mysql_error() );
while($row = mysql_fetch_array($result))
{
echo '<tr>';
echo '<td width="80" bgcolor="#d4d4d4">'.$row['id'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['departement'].'</td>';
echo '<td bgcolor="#d4d4d4">'.$row['commentaires'].'</td>';
echo '<td bgcolor="#d4d4d4">X</td>';
echo '</tr>'."\n";
}
}
}
echo '</table>'."\n";
?>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
thecrazyspy
Messages postés
413
Date d'inscription
lundi 21 janvier 2008
Statut
Membre
Dernière intervention
13 novembre 2015
43
3 juin 2008 à 14:31
3 juin 2008 à 14:31
je tes renvoyer le fichier, moi sa marche bizare, moi dans l'ancien admeton ta trois choix, tu coche le 1er et le 3eme, apres dans la page de resultat il met une erreur je c plus quoi exactement, avec la page que je tes envoyer sa ne l'ecrit plus mais si toi sa ne le fait pas tant mieux
thecrazyspy
Messages postés
413
Date d'inscription
lundi 21 janvier 2008
Statut
Membre
Dernière intervention
13 novembre 2015
43
3 juin 2008 à 14:49
3 juin 2008 à 14:49
je vois que toi site avance avec paypal, donc tu n'a pas eu la meme erreur que moi apparement, donc je te souhaite bonne continuation, puis si ta d'autre problème, je reste connecter toutes la journée
dubuducu
Messages postés
391
Date d'inscription
lundi 8 novembre 2004
Statut
Membre
Dernière intervention
19 mai 2010
4
3 juin 2008 à 14:51
3 juin 2008 à 14:51
oui je teste vite fait,
je te remercie vraiment.
je sais que je peux compter sur toi !
Bonne aprem et a bientot
je te remercie vraiment.
je sais que je peux compter sur toi !
Bonne aprem et a bientot
thecrazyspy
Messages postés
413
Date d'inscription
lundi 21 janvier 2008
Statut
Membre
Dernière intervention
13 novembre 2015
43
3 juin 2008 à 14:55
3 juin 2008 à 14:55
ok, bonne continuation