First Commit
[kimblog.git/.git] / change.php
1 <?php
2         require 'api/server_info.php';
3         $conn=mysqli_connect($db1_link,$db1_user,$db1_pw,$db1_name);
4         $query=$conn->query('select blogname,blogtitle from blog');
5         $info=$query->fetch_array();
6 ?>
7 <html >
8         <head>
9                 <title><?php echo $info['blogtitle'];?></title>
10                 <link rel='stylesheet' type='text/css' href='css/kie.css'>
11                 <link rel='stylesheet' type='text/css' href='css/change.css'>
12         </head>
13         <body>
14                 <div id='chnamepost'>
15                 <form action='api/change_name.php' method='post'>
16                 <i><label class='labels'>Nombre</label></i>
17                 <input placeholder='Nuevo nombre' class='inputs' value='<?php echo $info["blogname"];?>' name='name'>
18                 <i><label class='labels'>Titulo</label></i>
19                 <input placeholder='Nuevo titulo' class='inputs' value='<?php echo $info["blogtitle"];?>' name='title'>
20                 <input type='submit' value='Cambiar' class='submit'>
21                 </form>
22                 </div>
23         </body>
24 </html>