Erreur php
Utilisateur anonyme
-
creadiff Messages postés 483 Statut Membre -
creadiff Messages postés 483 Statut Membre -
Bonjour,
une autre problème qui me rencontre c'est ce message:
Notice: Undefined index: orcl in C:\wamp\www\headlines\ab.php on line 82
le code de la page est le suivant:
l
une autre problème qui me rencontre c'est ce message:
Notice: Undefined index: orcl in C:\wamp\www\headlines\ab.php on line 82
le code de la page est le suivant:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>SORETRAK</title>
<?php
mysql_connect("localhost","root","");
mysql_select_db("orcl");
?>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
<!--
body,td,th {
font-size: 10px;
}
.Style4 {font-size: 16px; font-weight: bold; color: #000000; }
.Style6 {font-weight: bold; font-size: 36px;}
.Style7 {
color: #FFFFFF;
font-size: 16px;
}
.Style10 {font-size: 36px}
.Style13 {color: #FFFFFF}
.Style14 {font-size: 16px}
-->
</style>
<script language="javascript">
function controle(){
var vt1=document.getElementById('t1').value;
var vt2=document.getElementById('t2').value;
if(vt1 == ""){
alert("Numéro bureau vide ...!!");
return false;
}
if(vt2 == ""){
alert("Libellé bureau vide ...!!");
return false;
}
else{
document.f1.submit();
alert("Ajout avec succée...!!");
}
}
</script>
</head>
<body>
<div id="wrapper">
<div id="header" style="width: 801px; height: 148px">
<table border="0" cellspacing="0" cellpadding="0" width="801" height="139">
<tr>
<td width="145"><a href="index2.php?T1=admin&T2=admin&B1=Connecter" target="_self"></a></td>
<th valign="top" nowrap="nowrap" bordercolor="#E0DFE3">
<blockquote>
<h1 align="center">
<h1 align="center"> </h1>
</blockquote>
<h1 class="Style7"></h1></th>
</tr>
</table>
</div>
<div id="content">
<table width="798" border="0">
<tr>
<td width="6" height="449"> </td>
<td width="782">
<h1 align="center"> </h1>
<table width="789" height="830" border="1" bordercolor="#FF9900" background="3.jpg">
<tr>
<td width="779"><h1 align="center" class="Style6"><img src="ajouter bureau.gif" alt="" width="468" height="60" /></h1>
<form name="f1" id="f1" method="post" action="<?php $_SERVER['orcl']?>">
<?php
$vt1=$_POST["t1"];
$vt2=$_POST["t2"];
if(isset($_POST["t1"]) and isset($_POST["t2"]))
{
$insert="INSERT INTO 'bureau' ('numbureau', 'libbureau') VALUES ('$vt1','$vt2') ";
$mat=mysql_query($insert);
mysql_close();
}
?>
<div class="post">
<p> </p>
<table width="504" border="0" align="center" bordercolor="#000000" bgcolor="#FF9900">
<tr>
<td width="200" height="140"><h4 align="center" class="Style4"> Numéro bureau </h4></td>
<td width="294"><input type="text" name="t1" id="t1" /></td>
</tr>
<tr>
<td height="183" nowrap="nowrap"><p> </p>
<blockquote>
<h4 align="center" class="Style4">Libellé bureau</h4>
</blockquote>
<h4 align="center" class="Style4"> </h4></td>
<td><p> </p>
<p> </p>
<p>
<input type="text" name="t2" id="t2" />
</p>
<p align="left"> </p>
<table width="294" border="0" height="24">
<tr>
<td><input name="enregistrer" type="button" onclick="controle();" id="enregistrer" style="float: right" value="Enregistrer" align="left" /></td>
</tr>
</table></td>
</tr>
</table>
</div>
</form></td>
</tr>
</table>
<div class="post"></div>
</td>
</tr>
</table>
</div>
<div id="footer">
<p class="copyright"> </p>
<p class="links"> </p>
<div align="center">Tous les droites reservée
SORETRAK © 2011</div>
</div>
</div>
</body>
</html>
l
A voir également:
- Erreur php
- Expert php pinterest - Télécharger - Langages
- Erreur 4101 france tv - Forum Lecteurs et supports vidéo
- Erreur 0x80070643 - Accueil - Windows
- Erreur 0x80070643 Windows 10 : comment résoudre le problème de la mise à jour KB5001716 - Accueil - Windows
- Erreur upes 1025 - Forum Téléviseurs
3 réponses
Tout simplement, la variable globale $_SERVER ne contient (normalement) aucune entrée pour la clé "orcl"...
orcl c'est le nom de ma base de donnée ,est ce qu'il y a une solution ,ma page de suppression est en seule page .php