Communication
adrien.bessong
Messages postés
58
Date d'inscription
Statut
Membre
Dernière intervention
-
Dipankara Messages postés 188 Date d'inscription Statut Membre Dernière intervention -
Dipankara Messages postés 188 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>adrien stage</title>
<style type="text/css">
<!--
div {
font-family: Arial;
font-size: 15px;
font-weight: normal;
font-variant: normal;
text-transform: lowercase;
color: blue;
text-decoration: blink;
bgcolor=red;
}
-->
</style>
</head>
<body bgcolor=#C0C0C0>
<table cellspacing="7" cellpadding="30"><tr><td><SCRIPT LANGUAGE="JavaScript" SRC="ejs_menu_dyn.js"></SCRIPT></td></tr>
<tr><td>
<form action="stage1.php" method="post" >
<div > Information sur l'incident </div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de l'incident :</td><td> <input type="texte" name="titre_incident" size="100"></td></tr></table></td> </tr>
<tr><td >symptome de l'incident : </td></tr>
<tr><td ><textarea name="symptome_incident" cols="100" rows="5"></textarea></td></tr></table></td></tr></table>
<br>
<hr>
<br>
<div>information sur la cause</div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la cause :</td><td> <input type="texte" name="titre_cause" size="100"></td></tr></table></td></tr>
<tr><td>détail sur la cause :</td> </tr>
<tr><td><textarea name="libelle_cause" cols="100" rows="5"></textarea></td></tr></table>
<hr>
<br>
<div>information sur les solutions</div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la solution : </td><td><input type="texte" name="titre_sol" size="100"> </td></tr></table></td></tr>
<tr><td>Détail sur la solution : </td></tr>
<tr><td><textarea name="detail_sol" cols="100" rows="5"></textarea></td></tr></table>
<br>
<hr>
<br>
<div>information sur l'appareil</div>
<hr>
<table><tr><td>
<table><tr><td>Type d'appareil : </td><td><input type="text" name="type_app" size="20" > </td>
</tr></table></td></tr>
</table>
<hr>
<table><tr><td><fieldset><legend> UTILISATEUR </legend>
<div><TABLE><tr><td> Matricule : </td><td><input type="text" name="mat" size="30" > </td></tr>
<tr><td> Nom : </td><td><input type="text" name="nom_util" size="30" > </td></tr>
<tr><td> Prenom : </td><td><input type="text" name="pre_util" size="30" > </td></tr>
<tr><td> Fonction : </td><td><input type="text" name="fonction" size="30" > </td></tr>
<tr><td> Téléphone : </td><td><input type="text" name="tel_util" size="30" > </td></tr>
<tr><td> Addresse : </td><td><input type="text" name="add_util" size="30" > </td></tr>
</TABLE></div>
</fieldset></td>
<td><fieldset><legend> FOURNISSEUR </legend>
<div align="right"> <TABLE >
<tr><td> Nom : </td><td><input type="text" name="nom_fourn" size="30" > </td></tr>
<tr><td> Addresse mail : </td><td><input type="text" name="add_fourn" size="30" > </td></tr>
<tr><td> lieu de résidence : </td><td><input type="text" name="lieu" size="30" > </td></tr>
<tr><td> Téléphone : </td><td><input type="text" name="tel_fourn" size="30" > </td></tr>
</TABLE></div>
</fieldset></td>
</tr></table>
<hr>
<div align="center"> <input type="submit" name="" value="valider" width="15"></div>
</form>
</td></tr></table>
</body>
</html>
stage1.php
<?php
if(isset($_POST['titre_incident'])) $titre_inc=$_POST['titre_incident'];
if(isset($_POST['symptome_incident'])) $symptome_inc=$_POST['symptome_incident'];
if(isset($_POST['titre_cause'])) $titre_cause=$_POST['titre_cause'];
if(isset($_POST['libelle_cause'])) $libelle_cause=$_POST['libelle_cause'];
if(isset($_POST['titre_sol'])) $titre_sol=$_POST['titre_sol'];
if(isset($_POST['detail_sol'])) $detail_sol=$_POST['detail_sol'];
if(isset($_POST['type_app'])) $type_app=$_POST['type_app'];
if(isset($_POST['nbr'])) $nbr=$_POST['nbr'];
if(isset($_POST['mat'])) $mat=$_POST['mat'];
if(isset($_POST['nom_util'])) $nom_util=$_POST['nom_util'];
if(isset($_POST['pre_util'])) $pre_util=$_POST['pre_util'];
if(isset($_POST['fonction'])) $fonction=$_POST['fonction'];
if(isset($_POST['tel_util'])) $tel_util=$_POST['tel_util'];
if(isset($_POST['add_util'])) $add_util=$_POST['add_util'];
if(isset($_POST['nom_fourn'])) $nom_fourn=$_POST['nom_fourn'];
if(isset($_POST['add_fourn'])) $add_fourn=$_POST['add_fourn'];
if(isset($_POST['lieu'])) $lieu=$_POST['lieu'];
if(isset($_POST['tel_fourn'])) $tel_fourn=$_POST['tel_fourn'];
//$titre_inc=addslashes($titre_inc);//$titre_cause=addslashes($titre_cause);
//$titre_sol=addslashes($titre_sol);
//$nom_util=addslashes($nom_util);$pre_util=addslashes($pre_util);$nom_fourn=addslashes($nom_fourn);
$db = mysql_connect('localhost','root','');
mysql_select_db('gestion_incident',$db) or die('Erreur de selection '.mysql_error());
$sql="insert into utilisateur (id_utilisateur,nom_utilisateur,pre_utilisateur,fonction,tel_utilisateur,add_utilisateur)
value ('$mat','$nom_util','$pre_util','$fonction','$tel_util','$add_util')";
mysql_query($sql);// or die('Erreur2 SQL !'.$sql.'<br>'.mysql_error());
$sql="insert into fournisseur (num_fourn,nom_fourn,add_fourn,lieu_fourn,tel_fourn)
value ('','$nom_fourn','$add_fourn','$lieu','$tel_fourn')";
mysql_query($sql) ;//or die('Erreur2 SQL !'.$sql.'<br>'.mysql_error());
$sql="select * from $type_app ";
$rst=mysql_query($sql) or die('
<SCRIPT language="Javascript">
<!--
alert("ERREUR CET APPAREIL N\'EXISTE PAS ENCORE !! <br> IL FAUT D\'ABORD LE CREER ");
// -->
</SCRIP>');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>adrien stage</title>
<style type="text/css">
<!--
div {
font-family: Arial;
font-size: 15px;
font-weight: normal;
font-variant: normal;
text-transform: lowercase;
color: blue;
text-decoration: blink;
}
-->
</style>
</head>
<body bgcolor="#C0C0C0">
<table cellspacing="7" cellpadding="30"><tr><td><SCRIPT LANGUAGE="JavaScript" SRC="ejs_menu_dyn.js"></SCRIPT></td></tr><tr><td>
<form action="stage12.php" method="post" enctype="multipart/form-data" name="form1">
<input type=hidden value="<?php echo $type_app?>" name="type_app">
<div> Information sur l'incident </div>
<hr>
<table><tr><td>
<table><tr><td>Titre de l'incident : </td><td> <input type="texte" name="titre_incident" size="100" value="<?php echo $titre_inc ?>" readonly="true"> </td></tr></table></td></tr>
<tr><td>symptome de l'incident : </td></tr>
<tr><td><textarea name="symptome_incident" cols="100" rows="5" readonly="readonly"><?php echo $symptome_inc ?></textarea>
</td></tr></table>
<hr>
<br>
<div>information sur la cause</div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la cause : </td><td> <input type="texte" name="titre_cause" size="100" value="<?php echo $titre_cause ?>" readonly="true"> </td></tr></table>
</td></tr>
<tr><td>détail sur la cause : </td></tr>
<tr><td><textarea name="libelle_cause" cols="100" rows="5" readonly="readonly"><?php echo $libelle_cause ?></textarea></td></tr></table>
<hr>
<br>
<div> information sur les solutions </div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la solution : </td><td><input type="texte" name="titre_sol" size="100" value="<?php echo $titre_sol ?>" readonly="true"> </td></tr></table>
</td></tr>
<tr><td>Détail sur la solution : </td></tr>
<tr><td><textarea name="detail_sol" cols="100" rows="5" readonly="readonly"><?php echo $detail_sol ;?></textarea></td></tr></table>
<hr>
<br>
<div>information sur l'appareil</div>
<hr><table>
<?php //Erreur2 SQL !'.$sql.'<br>'.mysql_error());
$n=mysql_num_fields($rst);
$sn1=mysql_field_name($rst,1);?>
<tr><td><?php echo $sn1 ?>: </td><td><input type="texte" name="sn" > <input type=hidden name="n" value="<?php echo $n ;?>"></td></tr>
<?php for($i=2;$i<$n;$i++){
echo '<input type=hidden name="n" value="'.$n.'">
<tr><td>'.mysql_field_name($rst,$i).' : <input type=hidden name="ch'.$i.'" value="'.mysql_field_name($rst,$i).'"></td>
<td><input type=texte name="att'.$i.'" ></td></tr>';
}?>
</table>
<hr>
<div align="center"><input type="submit" name="valider" value="valider" ></div>
</form>
</td></tr></table>
</body>
</html>
s'il vous plait ces fichiers marchent avec easyphp1.8 mais avec easyphp3.0 ça ne marche pas
Avec wampserveur quand je click sur valider une page vierge s'affiche. s'il vous plait aidez moi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>adrien stage</title>
<style type="text/css">
<!--
div {
font-family: Arial;
font-size: 15px;
font-weight: normal;
font-variant: normal;
text-transform: lowercase;
color: blue;
text-decoration: blink;
bgcolor=red;
}
-->
</style>
</head>
<body bgcolor=#C0C0C0>
<table cellspacing="7" cellpadding="30"><tr><td><SCRIPT LANGUAGE="JavaScript" SRC="ejs_menu_dyn.js"></SCRIPT></td></tr>
<tr><td>
<form action="stage1.php" method="post" >
<div > Information sur l'incident </div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de l'incident :</td><td> <input type="texte" name="titre_incident" size="100"></td></tr></table></td> </tr>
<tr><td >symptome de l'incident : </td></tr>
<tr><td ><textarea name="symptome_incident" cols="100" rows="5"></textarea></td></tr></table></td></tr></table>
<br>
<hr>
<br>
<div>information sur la cause</div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la cause :</td><td> <input type="texte" name="titre_cause" size="100"></td></tr></table></td></tr>
<tr><td>détail sur la cause :</td> </tr>
<tr><td><textarea name="libelle_cause" cols="100" rows="5"></textarea></td></tr></table>
<hr>
<br>
<div>information sur les solutions</div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la solution : </td><td><input type="texte" name="titre_sol" size="100"> </td></tr></table></td></tr>
<tr><td>Détail sur la solution : </td></tr>
<tr><td><textarea name="detail_sol" cols="100" rows="5"></textarea></td></tr></table>
<br>
<hr>
<br>
<div>information sur l'appareil</div>
<hr>
<table><tr><td>
<table><tr><td>Type d'appareil : </td><td><input type="text" name="type_app" size="20" > </td>
</tr></table></td></tr>
</table>
<hr>
<table><tr><td><fieldset><legend> UTILISATEUR </legend>
<div><TABLE><tr><td> Matricule : </td><td><input type="text" name="mat" size="30" > </td></tr>
<tr><td> Nom : </td><td><input type="text" name="nom_util" size="30" > </td></tr>
<tr><td> Prenom : </td><td><input type="text" name="pre_util" size="30" > </td></tr>
<tr><td> Fonction : </td><td><input type="text" name="fonction" size="30" > </td></tr>
<tr><td> Téléphone : </td><td><input type="text" name="tel_util" size="30" > </td></tr>
<tr><td> Addresse : </td><td><input type="text" name="add_util" size="30" > </td></tr>
</TABLE></div>
</fieldset></td>
<td><fieldset><legend> FOURNISSEUR </legend>
<div align="right"> <TABLE >
<tr><td> Nom : </td><td><input type="text" name="nom_fourn" size="30" > </td></tr>
<tr><td> Addresse mail : </td><td><input type="text" name="add_fourn" size="30" > </td></tr>
<tr><td> lieu de résidence : </td><td><input type="text" name="lieu" size="30" > </td></tr>
<tr><td> Téléphone : </td><td><input type="text" name="tel_fourn" size="30" > </td></tr>
</TABLE></div>
</fieldset></td>
</tr></table>
<hr>
<div align="center"> <input type="submit" name="" value="valider" width="15"></div>
</form>
</td></tr></table>
</body>
</html>
stage1.php
<?php
if(isset($_POST['titre_incident'])) $titre_inc=$_POST['titre_incident'];
if(isset($_POST['symptome_incident'])) $symptome_inc=$_POST['symptome_incident'];
if(isset($_POST['titre_cause'])) $titre_cause=$_POST['titre_cause'];
if(isset($_POST['libelle_cause'])) $libelle_cause=$_POST['libelle_cause'];
if(isset($_POST['titre_sol'])) $titre_sol=$_POST['titre_sol'];
if(isset($_POST['detail_sol'])) $detail_sol=$_POST['detail_sol'];
if(isset($_POST['type_app'])) $type_app=$_POST['type_app'];
if(isset($_POST['nbr'])) $nbr=$_POST['nbr'];
if(isset($_POST['mat'])) $mat=$_POST['mat'];
if(isset($_POST['nom_util'])) $nom_util=$_POST['nom_util'];
if(isset($_POST['pre_util'])) $pre_util=$_POST['pre_util'];
if(isset($_POST['fonction'])) $fonction=$_POST['fonction'];
if(isset($_POST['tel_util'])) $tel_util=$_POST['tel_util'];
if(isset($_POST['add_util'])) $add_util=$_POST['add_util'];
if(isset($_POST['nom_fourn'])) $nom_fourn=$_POST['nom_fourn'];
if(isset($_POST['add_fourn'])) $add_fourn=$_POST['add_fourn'];
if(isset($_POST['lieu'])) $lieu=$_POST['lieu'];
if(isset($_POST['tel_fourn'])) $tel_fourn=$_POST['tel_fourn'];
//$titre_inc=addslashes($titre_inc);//$titre_cause=addslashes($titre_cause);
//$titre_sol=addslashes($titre_sol);
//$nom_util=addslashes($nom_util);$pre_util=addslashes($pre_util);$nom_fourn=addslashes($nom_fourn);
$db = mysql_connect('localhost','root','');
mysql_select_db('gestion_incident',$db) or die('Erreur de selection '.mysql_error());
$sql="insert into utilisateur (id_utilisateur,nom_utilisateur,pre_utilisateur,fonction,tel_utilisateur,add_utilisateur)
value ('$mat','$nom_util','$pre_util','$fonction','$tel_util','$add_util')";
mysql_query($sql);// or die('Erreur2 SQL !'.$sql.'<br>'.mysql_error());
$sql="insert into fournisseur (num_fourn,nom_fourn,add_fourn,lieu_fourn,tel_fourn)
value ('','$nom_fourn','$add_fourn','$lieu','$tel_fourn')";
mysql_query($sql) ;//or die('Erreur2 SQL !'.$sql.'<br>'.mysql_error());
$sql="select * from $type_app ";
$rst=mysql_query($sql) or die('
<SCRIPT language="Javascript">
<!--
alert("ERREUR CET APPAREIL N\'EXISTE PAS ENCORE !! <br> IL FAUT D\'ABORD LE CREER ");
// -->
</SCRIP>');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>adrien stage</title>
<style type="text/css">
<!--
div {
font-family: Arial;
font-size: 15px;
font-weight: normal;
font-variant: normal;
text-transform: lowercase;
color: blue;
text-decoration: blink;
}
-->
</style>
</head>
<body bgcolor="#C0C0C0">
<table cellspacing="7" cellpadding="30"><tr><td><SCRIPT LANGUAGE="JavaScript" SRC="ejs_menu_dyn.js"></SCRIPT></td></tr><tr><td>
<form action="stage12.php" method="post" enctype="multipart/form-data" name="form1">
<input type=hidden value="<?php echo $type_app?>" name="type_app">
<div> Information sur l'incident </div>
<hr>
<table><tr><td>
<table><tr><td>Titre de l'incident : </td><td> <input type="texte" name="titre_incident" size="100" value="<?php echo $titre_inc ?>" readonly="true"> </td></tr></table></td></tr>
<tr><td>symptome de l'incident : </td></tr>
<tr><td><textarea name="symptome_incident" cols="100" rows="5" readonly="readonly"><?php echo $symptome_inc ?></textarea>
</td></tr></table>
<hr>
<br>
<div>information sur la cause</div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la cause : </td><td> <input type="texte" name="titre_cause" size="100" value="<?php echo $titre_cause ?>" readonly="true"> </td></tr></table>
</td></tr>
<tr><td>détail sur la cause : </td></tr>
<tr><td><textarea name="libelle_cause" cols="100" rows="5" readonly="readonly"><?php echo $libelle_cause ?></textarea></td></tr></table>
<hr>
<br>
<div> information sur les solutions </div>
<hr>
<br>
<table><tr><td>
<table><tr><td>Titre de la solution : </td><td><input type="texte" name="titre_sol" size="100" value="<?php echo $titre_sol ?>" readonly="true"> </td></tr></table>
</td></tr>
<tr><td>Détail sur la solution : </td></tr>
<tr><td><textarea name="detail_sol" cols="100" rows="5" readonly="readonly"><?php echo $detail_sol ;?></textarea></td></tr></table>
<hr>
<br>
<div>information sur l'appareil</div>
<hr><table>
<?php //Erreur2 SQL !'.$sql.'<br>'.mysql_error());
$n=mysql_num_fields($rst);
$sn1=mysql_field_name($rst,1);?>
<tr><td><?php echo $sn1 ?>: </td><td><input type="texte" name="sn" > <input type=hidden name="n" value="<?php echo $n ;?>"></td></tr>
<?php for($i=2;$i<$n;$i++){
echo '<input type=hidden name="n" value="'.$n.'">
<tr><td>'.mysql_field_name($rst,$i).' : <input type=hidden name="ch'.$i.'" value="'.mysql_field_name($rst,$i).'"></td>
<td><input type=texte name="att'.$i.'" ></td></tr>';
}?>
</table>
<hr>
<div align="center"><input type="submit" name="valider" value="valider" ></div>
</form>
</td></tr></table>
</body>
</html>
s'il vous plait ces fichiers marchent avec easyphp1.8 mais avec easyphp3.0 ça ne marche pas
Avec wampserveur quand je click sur valider une page vierge s'affiche. s'il vous plait aidez moi
A voir également:
- Communication
- Near-field communication - Guide
- La communication via ssl a echoue ps vita ✓ - Forum Google Chrome
- Une erreur de communication est détectée dans le module de sécurité - Forum TNT / Satellite / Réception
- Branchement coffret de communication fibre optique ✓ - Forum câblage
- Pix le protocole assure que la communication - Forum Facebook