A voir également:
- Aide fonction javascript popup
- Fonction si et - Guide
- Fake mcafee popup - Accueil - Piratage
- Telecharger javascript - Télécharger - Langages
- Fonction miroir - Guide
- Fonction moyenne excel - Guide
39 réponses
Alors dans ma page utilisateur.php j'ai deux bouton modifier et supprimer.
je souhaite récupérer $_POST['check'] (étant un radio) quand je clic sur les boutons modifier et supprimer qui sont deux pages différentes et qui s'ouvrent en tant que popup.
hélas quand je clic sur un des deux boutons et que je fais un echo $_POST['check']
et rien apparait
est plus clair vous faut il le code?
je souhaite récupérer $_POST['check'] (étant un radio) quand je clic sur les boutons modifier et supprimer qui sont deux pages différentes et qui s'ouvrent en tant que popup.
hélas quand je clic sur un des deux boutons et que je fais un echo $_POST['check']
et rien apparait
est plus clair vous faut il le code?
ok, c'est quoi la page de destination lorsque je clique sur modifier ?
Et fait copier-coller le code complet de ta page utilisateur ici
Et fait copier-coller le code complet de ta page utilisateur ici
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Voici le code
enfin <form method="post" onSubmit="javascript:ouvreFenetre(??????)">
Ne vous inqiétez pas des ???? c'est juste que je sais pas comment faire pour rediriger vers deux pages car il faut que je récupère $_POST['check'] dans Del_arret.php et Modif_form
<html>
<!################################################################################################################################>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<link rel="stylesheet" media="screen" type="text/css" title="identification" href="Application.css">
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<!################################################################################################################################>
<form method="post" onSubmit="javascript:ouvreFenetre(??????)">
<body onload="runClock()">
<!--------------- Bannière --------------->
<div id="ban2" > </div>
<!--------------- Boutton --------------->
<div style="text-align: center;">
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
<input name="lien2" type="submit" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
<input name="lien3" type="submit" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
<input name="lien4" value="Imprimer" onclick="edition();return false;"type="button">
</div>
<br>
<!--------------- Heure défilant --------------->
<div id="time"></div>
<!--------------- Tableau de gestion des arrêts chaîne --------------->
<?php
require('Connexion.php');
require('Requete.php');
//--------------- Requete du tableau des arrêts chaîne ---------------//
$sql0="SELECT * FROM ARRET_CHAINE WHERE DEBUT =#$date#";
$rs = odbc_exec($conn,$sql0) or die('Erreur SQL : <br />'.$sql0);
//--------------- Tableau des arrêts chaîne ---------------//
echo "<div style='overflow-y: scroll; height: 305'> ";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<tr>";
echo "<table style='width: 968px; height: 60px;' border='5' cellpadding='2' cellspacing='1'>"; // Taille du tableau //
echo "<tbody>";
echo "<tr>";
echo "<td class='table-titre' colspan='9'> Ouverture: $ouverture Cadence: $cadence Taktime: $total </td>";
echo "</tr>";
echo "<tr>";
echo "<td class='table-entete-centre' width='20'>Choix</td>";
echo "<td class='table-entete-centre' width='20'>Type</td>";
echo "<td class='table-entete-centre' width='20'>Début</td>";
echo "<td class='table-entete-centre' width='20'>Fin</td>";
echo "<td class='table-entete-centre' width='20'>Constat</td>";
echo "<td class='table-entete-centre' width='20'>Demande </td>";
echo "<td class='table-entete-centre' width='20'>Cause</td>";
echo "<td class='table-entete-centre' width='20'>Information</td>";
echo "<td class='table-entete-centre' width='20'>Imputation</td>";
echo "</tr>";
while (odbc_fetch_row($rs))
{
$CHOIX = odbc_result($rs,"NUMERO_ARRET_CHAINE");
$TYPE=odbc_result($rs,"TYPE");
$DEBUT=odbc_result($rs,"HEURE_DEBUT");
$FIN=odbc_result($rs,"HEURE_FIN");
$CONSTAT=odbc_result($rs,"CONSTAT");
$DEMANDE=odbc_result($rs,"DEMANDE");
$CAUSE=odbc_result($rs,"CAUSE");
$INFO=odbc_result($rs,"COMPLEMENT_INFORMATION");
$IMPUTATION=odbc_result($rs,"IMPUTATION");
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" name=\"check\" value='".$CHOIX."'> </td>";
echo "<td class='table-ligne1-centre' width='100'>$TYPE</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEBUT</td>";
echo "<td class='table-ligne1-centre' width='100'>$FIN</td>";
echo "<td class='table-ligne1-centre' width='100'>$CONSTAT</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEMANDE</td>";
echo "<td class='table-ligne1-centre' width='100'>$CAUSE</td>";
echo "<td class='table-ligne1-centre' width='100'>$INFO</td>";
echo "<td class='table-ligne1-centre' width='100'>$IMPUTATION</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</div>";
//--------------- Tableau des informations générales de la journée ---------------//
echo "<br>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<table style='width: 500px; height: 90px;' border='5' cellpadding='2' cellspacing='1'>";
echo "<tr>";
echo "<td class='table-titre' colspan='13'> Infos en temps réel </td>";
echo "</tr>";
//--------------- En tete de colonne ---------------//
echo "<tr>";
echo "<td class='table-entete' width='1'>Nombre d'arrêt </td>";
echo "<td class='table-entete' width='1'>Durée perdu </td>";
echo "<td class='table-entete-centre' width='20'>Pertes TA </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='20'>Info </td>";
echo "<td class='table-entete-centre' width='20'>Trou </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='50'>Durée total perdu </td>";
echo "<td class='table-entete-centre' width='50'>TA total perdu </td>";
echo "</tr>";
//--------------- RESULTATS ---------------//
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> $my_array[0] </td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeperdu </td>";
echo "<td class='table-ligne1-centre' width='100'> $perteTA </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeinfo </td>";
echo "<td class='table-ligne1-centre' width='100'> $resultat </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $totalduree </td>";
echo "<td class='table-ligne1-centre' width='100'> $pertetotaleTA </td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
//--------------- Fermeture de la bdd ---------------//
odbc_close($conn);
?>
<!--------------- Fin page utilisateur --------------->
</form>
</body>
</html>
enfin <form method="post" onSubmit="javascript:ouvreFenetre(??????)">
Ne vous inqiétez pas des ???? c'est juste que je sais pas comment faire pour rediriger vers deux pages car il faut que je récupère $_POST['check'] dans Del_arret.php et Modif_form
<html>
<!################################################################################################################################>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<link rel="stylesheet" media="screen" type="text/css" title="identification" href="Application.css">
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<!################################################################################################################################>
<form method="post" onSubmit="javascript:ouvreFenetre(??????)">
<body onload="runClock()">
<!--------------- Bannière --------------->
<div id="ban2" > </div>
<!--------------- Boutton --------------->
<div style="text-align: center;">
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
<input name="lien2" type="submit" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
<input name="lien3" type="submit" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
<input name="lien4" value="Imprimer" onclick="edition();return false;"type="button">
</div>
<br>
<!--------------- Heure défilant --------------->
<div id="time"></div>
<!--------------- Tableau de gestion des arrêts chaîne --------------->
<?php
require('Connexion.php');
require('Requete.php');
//--------------- Requete du tableau des arrêts chaîne ---------------//
$sql0="SELECT * FROM ARRET_CHAINE WHERE DEBUT =#$date#";
$rs = odbc_exec($conn,$sql0) or die('Erreur SQL : <br />'.$sql0);
//--------------- Tableau des arrêts chaîne ---------------//
echo "<div style='overflow-y: scroll; height: 305'> ";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<tr>";
echo "<table style='width: 968px; height: 60px;' border='5' cellpadding='2' cellspacing='1'>"; // Taille du tableau //
echo "<tbody>";
echo "<tr>";
echo "<td class='table-titre' colspan='9'> Ouverture: $ouverture Cadence: $cadence Taktime: $total </td>";
echo "</tr>";
echo "<tr>";
echo "<td class='table-entete-centre' width='20'>Choix</td>";
echo "<td class='table-entete-centre' width='20'>Type</td>";
echo "<td class='table-entete-centre' width='20'>Début</td>";
echo "<td class='table-entete-centre' width='20'>Fin</td>";
echo "<td class='table-entete-centre' width='20'>Constat</td>";
echo "<td class='table-entete-centre' width='20'>Demande </td>";
echo "<td class='table-entete-centre' width='20'>Cause</td>";
echo "<td class='table-entete-centre' width='20'>Information</td>";
echo "<td class='table-entete-centre' width='20'>Imputation</td>";
echo "</tr>";
while (odbc_fetch_row($rs))
{
$CHOIX = odbc_result($rs,"NUMERO_ARRET_CHAINE");
$TYPE=odbc_result($rs,"TYPE");
$DEBUT=odbc_result($rs,"HEURE_DEBUT");
$FIN=odbc_result($rs,"HEURE_FIN");
$CONSTAT=odbc_result($rs,"CONSTAT");
$DEMANDE=odbc_result($rs,"DEMANDE");
$CAUSE=odbc_result($rs,"CAUSE");
$INFO=odbc_result($rs,"COMPLEMENT_INFORMATION");
$IMPUTATION=odbc_result($rs,"IMPUTATION");
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" name=\"check\" value='".$CHOIX."'> </td>";
echo "<td class='table-ligne1-centre' width='100'>$TYPE</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEBUT</td>";
echo "<td class='table-ligne1-centre' width='100'>$FIN</td>";
echo "<td class='table-ligne1-centre' width='100'>$CONSTAT</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEMANDE</td>";
echo "<td class='table-ligne1-centre' width='100'>$CAUSE</td>";
echo "<td class='table-ligne1-centre' width='100'>$INFO</td>";
echo "<td class='table-ligne1-centre' width='100'>$IMPUTATION</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</div>";
//--------------- Tableau des informations générales de la journée ---------------//
echo "<br>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<table style='width: 500px; height: 90px;' border='5' cellpadding='2' cellspacing='1'>";
echo "<tr>";
echo "<td class='table-titre' colspan='13'> Infos en temps réel </td>";
echo "</tr>";
//--------------- En tete de colonne ---------------//
echo "<tr>";
echo "<td class='table-entete' width='1'>Nombre d'arrêt </td>";
echo "<td class='table-entete' width='1'>Durée perdu </td>";
echo "<td class='table-entete-centre' width='20'>Pertes TA </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='20'>Info </td>";
echo "<td class='table-entete-centre' width='20'>Trou </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='50'>Durée total perdu </td>";
echo "<td class='table-entete-centre' width='50'>TA total perdu </td>";
echo "</tr>";
//--------------- RESULTATS ---------------//
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> $my_array[0] </td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeperdu </td>";
echo "<td class='table-ligne1-centre' width='100'> $perteTA </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeinfo </td>";
echo "<td class='table-ligne1-centre' width='100'> $resultat </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $totalduree </td>";
echo "<td class='table-ligne1-centre' width='100'> $pertetotaleTA </td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
//--------------- Fermeture de la bdd ---------------//
odbc_close($conn);
?>
<!--------------- Fin page utilisateur --------------->
</form>
</body>
</html>
Répond d'abord à 3 questions : lorsque je clique sur:
-le boutton Arret Chaine, c'est quoi le nom de la page de destination ?
-le boutton Arret Modifier, c'est quoi le nom de la page de destination ?
-le boutton Arret Supprimer, c'est quoi le nom de la page de destination ?
-le boutton Arret Chaine, c'est quoi le nom de la page de destination ?
-le boutton Arret Modifier, c'est quoi le nom de la page de destination ?
-le boutton Arret Supprimer, c'est quoi le nom de la page de destination ?
Répond d'abord à 3 questions : lorsque je clique sur:
-le boutton Arret Chaine, c'est quoi le nom de la page de destination ?
-le boutton Modifier, c'est quoi le nom de la page de destination ?
-le boutton Supprimer, c'est quoi le nom de la page de destination ?
-le boutton Arret Chaine, c'est quoi le nom de la page de destination ?
-le boutton Modifier, c'est quoi le nom de la page de destination ?
-le boutton Supprimer, c'est quoi le nom de la page de destination ?
-le boutton Arret Chaine, c'est quoi le nom de la page de destination ? Form_utilisateur.php
-le boutton Arret Modifier, c'est quoi le nom de la page de destination ? Modif_form.php
-le boutton Arret Supprimer, c'est quoi le nom de la page de destination ? Del_arret.php
-le boutton Arret Modifier, c'est quoi le nom de la page de destination ? Modif_form.php
-le boutton Arret Supprimer, c'est quoi le nom de la page de destination ? Del_arret.php
ok, et bein si il y a 3 pages de destination, alors forcement, il ya 3 bouton submit dans ton formulaire, par conséquent il y a 3 formulaires et pas un seul, donc voilà la 1ère correction en gras :
<html>
<!################################################################################################################################>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<link rel="stylesheet" media="screen" type="text/css" title="identification" href="Application.css">
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<!################################################################################################################################>
<body onload="runClock()">
<!--------------- Bannière --------------->
<div id="ban2" > </div>
<!--------------- Boutton --------------->
<div style="text-align: center;">
<form action='Modif_form.php' method='post'>
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
</form>
<form action='Modif_form.php' method='post'><input name="lien2" type="submit" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
</form>
<form action='Del_arret.php' method='post'><input name="lien3" type="submit" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
</form>
<input name="lien4" value="Imprimer" onclick="edition();return false;"type="button">
</div>
<br>
<!--------------- Heure défilant --------------->
<div id="time"></div>
<!--------------- Tableau de gestion des arrêts chaîne --------------->
<?php
require('Connexion.php');
require('Requete.php');
//--------------- Requete du tableau des arrêts chaîne ---------------//
$sql0="SELECT * FROM ARRET_CHAINE WHERE DEBUT =#$date#";
$rs = odbc_exec($conn,$sql0) or die('Erreur SQL : <br />'.$sql0);
//--------------- Tableau des arrêts chaîne ---------------//
echo "<div style='overflow-y: scroll; height: 305'> ";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<tr>";
echo "<table style='width: 968px; height: 60px;' border='5' cellpadding='2' cellspacing='1'>"; // Taille du tableau //
echo "<tbody>";
echo "<tr>";
echo "<td class='table-titre' colspan='9'> Ouverture: $ouverture Cadence: $cadence Taktime: $total </td>";
echo "</tr>";
echo "<tr>";
echo "<td class='table-entete-centre' width='20'>Choix</td>";
echo "<td class='table-entete-centre' width='20'>Type</td>";
echo "<td class='table-entete-centre' width='20'>Début</td>";
echo "<td class='table-entete-centre' width='20'>Fin</td>";
echo "<td class='table-entete-centre' width='20'>Constat</td>";
echo "<td class='table-entete-centre' width='20'>Demande </td>";
echo "<td class='table-entete-centre' width='20'>Cause</td>";
echo "<td class='table-entete-centre' width='20'>Information</td>";
echo "<td class='table-entete-centre' width='20'>Imputation</td>";
echo "</tr>";
while (odbc_fetch_row($rs))
{
$CHOIX = odbc_result($rs,"NUMERO_ARRET_CHAINE");
$TYPE=odbc_result($rs,"TYPE");
$DEBUT=odbc_result($rs,"HEURE_DEBUT");
$FIN=odbc_result($rs,"HEURE_FIN");
$CONSTAT=odbc_result($rs,"CONSTAT");
$DEMANDE=odbc_result($rs,"DEMANDE");
$CAUSE=odbc_result($rs,"CAUSE");
$INFO=odbc_result($rs,"COMPLEMENT_INFORMATION");
$IMPUTATION=odbc_result($rs,"IMPUTATION");
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" name=\"check\" value='".$CHOIX."'> </td>";
echo "<td class='table-ligne1-centre' width='100'>$TYPE</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEBUT</td>";
echo "<td class='table-ligne1-centre' width='100'>$FIN</td>";
echo "<td class='table-ligne1-centre' width='100'>$CONSTAT</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEMANDE</td>";
echo "<td class='table-ligne1-centre' width='100'>$CAUSE</td>";
echo "<td class='table-ligne1-centre' width='100'>$INFO</td>";
echo "<td class='table-ligne1-centre' width='100'>$IMPUTATION</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</div>";
//--------------- Tableau des informations générales de la journée ---------------//
echo "<br>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<table style='width: 500px; height: 90px;' border='5' cellpadding='2' cellspacing='1'>";
echo "<tr>";
echo "<td class='table-titre' colspan='13'> Infos en temps réel </td>";
echo "</tr>";
//--------------- En tete de colonne ---------------//
echo "<tr>";
echo "<td class='table-entete' width='1'>Nombre d'arrêt </td>";
echo "<td class='table-entete' width='1'>Durée perdu </td>";
echo "<td class='table-entete-centre' width='20'>Pertes TA </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='20'>Info </td>";
echo "<td class='table-entete-centre' width='20'>Trou </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='50'>Durée total perdu </td>";
echo "<td class='table-entete-centre' width='50'>TA total perdu </td>";
echo "</tr>";
//--------------- RESULTATS ---------------//
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> $my_array[0] </td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeperdu </td>";
echo "<td class='table-ligne1-centre' width='100'> $perteTA </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeinfo </td>";
echo "<td class='table-ligne1-centre' width='100'> $resultat </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $totalduree </td>";
echo "<td class='table-ligne1-centre' width='100'> $pertetotaleTA </td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
//--------------- Fermeture de la bdd ---------------//
odbc_close($conn);
?>
<!--------------- Fin page utilisateur --------------->
</body>
</html>
Attention, c'est la 1ère étape pour résoudre le problème.
Maintenant c'est quoi le nom du fichier que tu viens de copier-coller ?
<html>
<!################################################################################################################################>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<link rel="stylesheet" media="screen" type="text/css" title="identification" href="Application.css">
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<!################################################################################################################################>
<body onload="runClock()">
<!--------------- Bannière --------------->
<div id="ban2" > </div>
<!--------------- Boutton --------------->
<div style="text-align: center;">
<form action='Modif_form.php' method='post'>
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
</form>
<form action='Modif_form.php' method='post'><input name="lien2" type="submit" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
</form>
<form action='Del_arret.php' method='post'><input name="lien3" type="submit" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
</form>
<input name="lien4" value="Imprimer" onclick="edition();return false;"type="button">
</div>
<br>
<!--------------- Heure défilant --------------->
<div id="time"></div>
<!--------------- Tableau de gestion des arrêts chaîne --------------->
<?php
require('Connexion.php');
require('Requete.php');
//--------------- Requete du tableau des arrêts chaîne ---------------//
$sql0="SELECT * FROM ARRET_CHAINE WHERE DEBUT =#$date#";
$rs = odbc_exec($conn,$sql0) or die('Erreur SQL : <br />'.$sql0);
//--------------- Tableau des arrêts chaîne ---------------//
echo "<div style='overflow-y: scroll; height: 305'> ";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<tr>";
echo "<table style='width: 968px; height: 60px;' border='5' cellpadding='2' cellspacing='1'>"; // Taille du tableau //
echo "<tbody>";
echo "<tr>";
echo "<td class='table-titre' colspan='9'> Ouverture: $ouverture Cadence: $cadence Taktime: $total </td>";
echo "</tr>";
echo "<tr>";
echo "<td class='table-entete-centre' width='20'>Choix</td>";
echo "<td class='table-entete-centre' width='20'>Type</td>";
echo "<td class='table-entete-centre' width='20'>Début</td>";
echo "<td class='table-entete-centre' width='20'>Fin</td>";
echo "<td class='table-entete-centre' width='20'>Constat</td>";
echo "<td class='table-entete-centre' width='20'>Demande </td>";
echo "<td class='table-entete-centre' width='20'>Cause</td>";
echo "<td class='table-entete-centre' width='20'>Information</td>";
echo "<td class='table-entete-centre' width='20'>Imputation</td>";
echo "</tr>";
while (odbc_fetch_row($rs))
{
$CHOIX = odbc_result($rs,"NUMERO_ARRET_CHAINE");
$TYPE=odbc_result($rs,"TYPE");
$DEBUT=odbc_result($rs,"HEURE_DEBUT");
$FIN=odbc_result($rs,"HEURE_FIN");
$CONSTAT=odbc_result($rs,"CONSTAT");
$DEMANDE=odbc_result($rs,"DEMANDE");
$CAUSE=odbc_result($rs,"CAUSE");
$INFO=odbc_result($rs,"COMPLEMENT_INFORMATION");
$IMPUTATION=odbc_result($rs,"IMPUTATION");
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" name=\"check\" value='".$CHOIX."'> </td>";
echo "<td class='table-ligne1-centre' width='100'>$TYPE</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEBUT</td>";
echo "<td class='table-ligne1-centre' width='100'>$FIN</td>";
echo "<td class='table-ligne1-centre' width='100'>$CONSTAT</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEMANDE</td>";
echo "<td class='table-ligne1-centre' width='100'>$CAUSE</td>";
echo "<td class='table-ligne1-centre' width='100'>$INFO</td>";
echo "<td class='table-ligne1-centre' width='100'>$IMPUTATION</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</div>";
//--------------- Tableau des informations générales de la journée ---------------//
echo "<br>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<table style='width: 500px; height: 90px;' border='5' cellpadding='2' cellspacing='1'>";
echo "<tr>";
echo "<td class='table-titre' colspan='13'> Infos en temps réel </td>";
echo "</tr>";
//--------------- En tete de colonne ---------------//
echo "<tr>";
echo "<td class='table-entete' width='1'>Nombre d'arrêt </td>";
echo "<td class='table-entete' width='1'>Durée perdu </td>";
echo "<td class='table-entete-centre' width='20'>Pertes TA </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='20'>Info </td>";
echo "<td class='table-entete-centre' width='20'>Trou </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='50'>Durée total perdu </td>";
echo "<td class='table-entete-centre' width='50'>TA total perdu </td>";
echo "</tr>";
//--------------- RESULTATS ---------------//
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> $my_array[0] </td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeperdu </td>";
echo "<td class='table-ligne1-centre' width='100'> $perteTA </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeinfo </td>";
echo "<td class='table-ligne1-centre' width='100'> $resultat </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $totalduree </td>";
echo "<td class='table-ligne1-centre' width='100'> $pertetotaleTA </td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
//--------------- Fermeture de la bdd ---------------//
odbc_close($conn);
?>
<!--------------- Fin page utilisateur --------------->
</body>
</html>
Attention, c'est la 1ère étape pour résoudre le problème.
Maintenant c'est quoi le nom du fichier que tu viens de copier-coller ?
ok, et bein si il y a 3 pages de destination, alors forcement,
il ya 3 bouton submit dans ton formulaire,
par conséquent il y a 3 formulaires et pas un seul,
donc voilà la 1ère correction en gras :
<html>
<!################################################################################################################################>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<link rel="stylesheet" media="screen" type="text/css" title="identification" href="Application.css">
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<!################################################################################################################################>
<body onload="runClock()">
<!--------------- Bannière --------------->
<div id="ban2" > </div>
<!--------------- Boutton --------------->
<div style="text-align: center;">
<form action='Modif_form.php' method='post'>
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
</form>
<form action='Modif_form.php' method='post'><input name="lien2" type="submit" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
</form>
<form action='Del_arret.php' method='post'><input name="lien3" type="submit" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
</form>
<input name="lien4" value="Imprimer" onclick="edition();return false;"type="button">
</div>
<br>
<!--------------- Heure défilant --------------->
<div id="time"></div>
<!--------------- Tableau de gestion des arrêts chaîne --------------->
<?php
require('Connexion.php');
require('Requete.php');
//--------------- Requete du tableau des arrêts chaîne ---------------//
$sql0="SELECT * FROM ARRET_CHAINE WHERE DEBUT =#$date#";
$rs = odbc_exec($conn,$sql0) or die('Erreur SQL : <br />'.$sql0);
//--------------- Tableau des arrêts chaîne ---------------//
echo "<div style='overflow-y: scroll; height: 305'> ";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<tr>";
echo "<table style='width: 968px; height: 60px;' border='5' cellpadding='2' cellspacing='1'>"; // Taille du tableau //
echo "<tbody>";
echo "<tr>";
echo "<td class='table-titre' colspan='9'> Ouverture: $ouverture Cadence: $cadence Taktime: $total </td>";
echo "</tr>";
echo "<tr>";
echo "<td class='table-entete-centre' width='20'>Choix</td>";
echo "<td class='table-entete-centre' width='20'>Type</td>";
echo "<td class='table-entete-centre' width='20'>Début</td>";
echo "<td class='table-entete-centre' width='20'>Fin</td>";
echo "<td class='table-entete-centre' width='20'>Constat</td>";
echo "<td class='table-entete-centre' width='20'>Demande </td>";
echo "<td class='table-entete-centre' width='20'>Cause</td>";
echo "<td class='table-entete-centre' width='20'>Information</td>";
echo "<td class='table-entete-centre' width='20'>Imputation</td>";
echo "</tr>";
while (odbc_fetch_row($rs))
{
$CHOIX = odbc_result($rs,"NUMERO_ARRET_CHAINE");
$TYPE=odbc_result($rs,"TYPE");
$DEBUT=odbc_result($rs,"HEURE_DEBUT");
$FIN=odbc_result($rs,"HEURE_FIN");
$CONSTAT=odbc_result($rs,"CONSTAT");
$DEMANDE=odbc_result($rs,"DEMANDE");
$CAUSE=odbc_result($rs,"CAUSE");
$INFO=odbc_result($rs,"COMPLEMENT_INFORMATION");
$IMPUTATION=odbc_result($rs,"IMPUTATION");
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" name=\"check\" value='".$CHOIX."'> </td>";
echo "<td class='table-ligne1-centre' width='100'>$TYPE</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEBUT</td>";
echo "<td class='table-ligne1-centre' width='100'>$FIN</td>";
echo "<td class='table-ligne1-centre' width='100'>$CONSTAT</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEMANDE</td>";
echo "<td class='table-ligne1-centre' width='100'>$CAUSE</td>";
echo "<td class='table-ligne1-centre' width='100'>$INFO</td>";
echo "<td class='table-ligne1-centre' width='100'>$IMPUTATION</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</div>";
//--------------- Tableau des informations générales de la journée ---------------//
echo "<br>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<table style='width: 500px; height: 90px;' border='5' cellpadding='2' cellspacing='1'>";
echo "<tr>";
echo "<td class='table-titre' colspan='13'> Infos en temps réel </td>";
echo "</tr>";
//--------------- En tete de colonne ---------------//
echo "<tr>";
echo "<td class='table-entete' width='1'>Nombre d'arrêt </td>";
echo "<td class='table-entete' width='1'>Durée perdu </td>";
echo "<td class='table-entete-centre' width='20'>Pertes TA </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='20'>Info </td>";
echo "<td class='table-entete-centre' width='20'>Trou </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='50'>Durée total perdu </td>";
echo "<td class='table-entete-centre' width='50'>TA total perdu </td>";
echo "</tr>";
//--------------- RESULTATS ---------------//
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> $my_array[0] </td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeperdu </td>";
echo "<td class='table-ligne1-centre' width='100'> $perteTA </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeinfo </td>";
echo "<td class='table-ligne1-centre' width='100'> $resultat </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $totalduree </td>";
echo "<td class='table-ligne1-centre' width='100'> $pertetotaleTA </td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
//--------------- Fermeture de la bdd ---------------//
odbc_close($conn);
?>
<!--------------- Fin page utilisateur --------------->
</body>
</html>
Attention, c'est la 1ère étape pour résoudre le problème.
Maintenant c'est quoi le nom du fichier que tu viens de copier-coller ?
il ya 3 bouton submit dans ton formulaire,
par conséquent il y a 3 formulaires et pas un seul,
donc voilà la 1ère correction en gras :
<html>
<!################################################################################################################################>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<link rel="stylesheet" media="screen" type="text/css" title="identification" href="Application.css">
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<!################################################################################################################################>
<body onload="runClock()">
<!--------------- Bannière --------------->
<div id="ban2" > </div>
<!--------------- Boutton --------------->
<div style="text-align: center;">
<form action='Modif_form.php' method='post'>
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
</form>
<form action='Modif_form.php' method='post'><input name="lien2" type="submit" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
</form>
<form action='Del_arret.php' method='post'><input name="lien3" type="submit" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
</form>
<input name="lien4" value="Imprimer" onclick="edition();return false;"type="button">
</div>
<br>
<!--------------- Heure défilant --------------->
<div id="time"></div>
<!--------------- Tableau de gestion des arrêts chaîne --------------->
<?php
require('Connexion.php');
require('Requete.php');
//--------------- Requete du tableau des arrêts chaîne ---------------//
$sql0="SELECT * FROM ARRET_CHAINE WHERE DEBUT =#$date#";
$rs = odbc_exec($conn,$sql0) or die('Erreur SQL : <br />'.$sql0);
//--------------- Tableau des arrêts chaîne ---------------//
echo "<div style='overflow-y: scroll; height: 305'> ";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<tr>";
echo "<table style='width: 968px; height: 60px;' border='5' cellpadding='2' cellspacing='1'>"; // Taille du tableau //
echo "<tbody>";
echo "<tr>";
echo "<td class='table-titre' colspan='9'> Ouverture: $ouverture Cadence: $cadence Taktime: $total </td>";
echo "</tr>";
echo "<tr>";
echo "<td class='table-entete-centre' width='20'>Choix</td>";
echo "<td class='table-entete-centre' width='20'>Type</td>";
echo "<td class='table-entete-centre' width='20'>Début</td>";
echo "<td class='table-entete-centre' width='20'>Fin</td>";
echo "<td class='table-entete-centre' width='20'>Constat</td>";
echo "<td class='table-entete-centre' width='20'>Demande </td>";
echo "<td class='table-entete-centre' width='20'>Cause</td>";
echo "<td class='table-entete-centre' width='20'>Information</td>";
echo "<td class='table-entete-centre' width='20'>Imputation</td>";
echo "</tr>";
while (odbc_fetch_row($rs))
{
$CHOIX = odbc_result($rs,"NUMERO_ARRET_CHAINE");
$TYPE=odbc_result($rs,"TYPE");
$DEBUT=odbc_result($rs,"HEURE_DEBUT");
$FIN=odbc_result($rs,"HEURE_FIN");
$CONSTAT=odbc_result($rs,"CONSTAT");
$DEMANDE=odbc_result($rs,"DEMANDE");
$CAUSE=odbc_result($rs,"CAUSE");
$INFO=odbc_result($rs,"COMPLEMENT_INFORMATION");
$IMPUTATION=odbc_result($rs,"IMPUTATION");
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" name=\"check\" value='".$CHOIX."'> </td>";
echo "<td class='table-ligne1-centre' width='100'>$TYPE</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEBUT</td>";
echo "<td class='table-ligne1-centre' width='100'>$FIN</td>";
echo "<td class='table-ligne1-centre' width='100'>$CONSTAT</td>";
echo "<td class='table-ligne1-centre' width='100'>$DEMANDE</td>";
echo "<td class='table-ligne1-centre' width='100'>$CAUSE</td>";
echo "<td class='table-ligne1-centre' width='100'>$INFO</td>";
echo "<td class='table-ligne1-centre' width='100'>$IMPUTATION</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</div>";
//--------------- Tableau des informations générales de la journée ---------------//
echo "<br>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='500'>";
echo "<tbody>";
echo "<table style='width: 500px; height: 90px;' border='5' cellpadding='2' cellspacing='1'>";
echo "<tr>";
echo "<td class='table-titre' colspan='13'> Infos en temps réel </td>";
echo "</tr>";
//--------------- En tete de colonne ---------------//
echo "<tr>";
echo "<td class='table-entete' width='1'>Nombre d'arrêt </td>";
echo "<td class='table-entete' width='1'>Durée perdu </td>";
echo "<td class='table-entete-centre' width='20'>Pertes TA </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='20'>Info </td>";
echo "<td class='table-entete-centre' width='20'>Trou </td>";
echo "<td class='table-entete-centre' width='20'></td>";
echo "<td class='table-entete-centre' width='50'>Durée total perdu </td>";
echo "<td class='table-entete-centre' width='50'>TA total perdu </td>";
echo "</tr>";
//--------------- RESULTATS ---------------//
echo "<tr>";
echo "<td class='table-ligne1-centre' width='100'> $my_array[0] </td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeperdu </td>";
echo "<td class='table-ligne1-centre' width='100'> $perteTA </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $dureeinfo </td>";
echo "<td class='table-ligne1-centre' width='100'> $resultat </td>";
echo "<td class='table-ligne1-centre' width='2'></td>";
echo "<td class='table-ligne1-centre' width='100'> $totalduree </td>";
echo "<td class='table-ligne1-centre' width='100'> $pertetotaleTA </td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
//--------------- Fermeture de la bdd ---------------//
odbc_close($conn);
?>
<!--------------- Fin page utilisateur --------------->
</body>
</html>
Attention, c'est la 1ère étape pour résoudre le problème.
Maintenant c'est quoi le nom du fichier que tu viens de copier-coller ?
ok.
Dans utilisateur.php , il y a bien des valeurs des variables à récupérer pour pouvoir les transmettre à
Modif_form.php par la method post ?
Ou se trouve ces variable dans utilisateur.php ?
Dans utilisateur.php , il y a bien des valeurs des variables à récupérer pour pouvoir les transmettre à
Modif_form.php par la method post ?
Ou se trouve ces variable dans utilisateur.php ?
echo "<td class='table-ligne1-centre' width='100'> <input type=\"radio\" name=\"check\" value='".$CHOIX."'> </td>";
Je veux juste récupérer cette variable car c'est la clé primaire de ma table
Je veux juste récupérer cette variable car c'est la clé primaire de ma table
ok.
Comme je ne peux pas avoir accès à ta base de données, suppons que $CHOIX soit égal à Salut, et on va travailler sur ce script qui est un script d'étude:
<html>
<head>
<title>utilisateur.php</title>
<?php
$host="...";
$user="...";
$password="...";
$database="...";
$connection=mysqli_connect($host,$user,$password,$database) or die("no connection");
?>
</head>
<body>
<form action='Modif_form.php' method='post'>
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
</form>
<form action='Modif_form.php' method='post'><input name="lien2" type="submit" value="Modifier" >
</form>
<form action='Del_arret.php' method='post'><input name="lien3" type="submit" value="Supprimer" >
</form>
</body>
</html>
Comme je ne peux pas avoir accès à ta base de données, suppons que $CHOIX soit égal à Salut, et on va travailler sur ce script qui est un script d'étude:
<html>
<head>
<title>utilisateur.php</title>
<?php
$host="...";
$user="...";
$password="...";
$database="...";
$connection=mysqli_connect($host,$user,$password,$database) or die("no connection");
?>
</head>
<body>
<form action='Modif_form.php' method='post'>
<input name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');" type="button">
</form>
<form action='Modif_form.php' method='post'><input name="lien2" type="submit" value="Modifier" >
</form>
<form action='Del_arret.php' method='post'><input name="lien3" type="submit" value="Supprimer" >
</form>
</body>
</html>
en fait $CHOIX peut prendre que des chiffres vu que c'est un radio mais c'est comme tu veut
au pire je peut te décrire ma bdd rapidement sachant qu'il y a une seule table qui nous intéresse.
au pire je peut te décrire ma bdd rapidement sachant qu'il y a une seule table qui nous intéresse.
table arret chaine
- numero-----------------------------CP
- numero_plan_action-----------CE
- debut
-type
-constat
-cause
-complement
-imputation
-heure_debut
-heure_fin
- numero-----------------------------CP
- numero_plan_action-----------CE
- debut
-type
-constat
-cause
-complement
-imputation
-heure_debut
-heure_fin
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<body>
<form name='form'>
<input type="radio" name="check" value="<?php $CHOIX="salut";echo"$CHOIX"?>">
<br>
</form>
<form action='Modif_form.php' method='post'>
<input type="button" name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');">
</form>
<form action='Modif_form.php' method='post'><input type="submit" name="lien2" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
</form>
<form action='Del_arret.php' method='post'><input type="submit" name="lien3" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
</form>
</body>
</html>
Voilà ce je vais essayer de faire:
L'utilisateur coche le bouton radio qui a pour valeur salut.
Ensuite lorsqu'il clique sur le bouton modifier, et bein on retrouvera la valeur salut dans la fenetre Modif_form.php
Est-ce que c'est ça que souhaite ?
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Utilisateur</title>
<script language="Javascript">
function ouvreFenetre(page)
{
window.open(page,"",config="width=600,height=600,screenX=100,screenY=100,top=200,left=250, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no'");
}
</script>
</head>
<body>
<form name='form'>
<input type="radio" name="check" value="<?php $CHOIX="salut";echo"$CHOIX"?>">
<br>
</form>
<form action='Modif_form.php' method='post'>
<input type="button" name="lien1" value="Arrêt chaîne" onclick="window.open('Form_utilisateur.php', 'utilisateur', config='width=600, height=600, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no');">
</form>
<form action='Modif_form.php' method='post'><input type="submit" name="lien2" value="Modifier" onclick="function ouvreFenetre(Modif_form.php)">
</form>
<form action='Del_arret.php' method='post'><input type="submit" name="lien3" value="Supprimer" onclick="function ouvreFenetre(Del_arret.php)">
</form>
</body>
</html>
Voilà ce je vais essayer de faire:
L'utilisateur coche le bouton radio qui a pour valeur salut.
Ensuite lorsqu'il clique sur le bouton modifier, et bein on retrouvera la valeur salut dans la fenetre Modif_form.php
Est-ce que c'est ça que souhaite ?
oui mais le code pour récupérer les valeurs je l'ai déja fait
Ce qu'il me manque SEULEMENT alors ca peut paraitre bete mais je ne trouve rien c'est de faire passer la valeur du bouton radio soit dans supprimer soit dans modifier c'est tout
Mais sinon oui c'est bien ca lol
d'ailleur si tu veut le code de modifier.... de supprimer...
Ce qu'il me manque SEULEMENT alors ca peut paraitre bete mais je ne trouve rien c'est de faire passer la valeur du bouton radio soit dans supprimer soit dans modifier c'est tout
Mais sinon oui c'est bien ca lol
d'ailleur si tu veut le code de modifier.... de supprimer...
Un bouton modifier => ouvre la page modification dans un popup
Un bouton supprimer => ouvre la page suppression dans un popup.
Si j'ai bien tout compris :)