Bonjour;

j'ai une page html, dans laquelle j'ai mis des boutons,qui sont liés à des pages php, j'aimerai que a chaque clique du bouton, la page php s'ouvre dans un div à coté et pas dans une nouvelle page

voici ma page:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php include '../index.php' ;?>
<?php
if (isset($_GET['codereg'])) {
    $NumReg=$_GET['codereg'];
 
}
else {
    echo 'vérifier paramètre';
}
?>
 
<html>
 
<head>
  <title>colour_green</title>
  <meta name="description" content="website description" />
  <meta name="keywords" content="website keywords, website keywords" />
  <meta http-equiv="content-type" content="text/html; charset=windows-1252" />
  <link rel="stylesheet" type="text/css" href="style/style.css" title="style" />
  <style>
.button{
    border:none;
    padding:6px 0 6px 0;
    border-radius:8px;
    background:#d34836;
    font:bold 13px Arial;
    color:#fff;}
    </style>
 
</head>
 
<body>
 
<Br>
<br>
 
<input type="button" onclick="javascript:location.href='CH.php/?codereg=<?php echo $NumReg;?>'" ><br><br>
 
<input type="button"  onclick="javascript:location.href='Banque.php/?codereg=<?php echo $NumReg;?>'" ><br><br>
 
<input type="button" onclick="javascript:location.href='Region.php/?codereg=<?php echo $NumReg;?>'" ><br><br>
 
<input type="button" onclick="javascript:location.href='morcellement.php/?codereg=<?php echo $NumReg;?>'" ><br><br>
 
<input type="button" ionclick="javascript:location.href='Foncier.php/?codereg=<?php echo $NumReg;?>'" ><br><br>
 
<input type="button"  onclick="javascript:location.href='nombreDM.php/?codereg=<?php echo $NumReg;?>'" >
</body>
 
</html>