| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/TSCP2/ |
Upload File : |
<?
include 'config.php';
dbConn();
if (isset($_POST['post'])) {
if ($_POST['question'] == "" && $_POST['answer'] == "") {
echo "<font face=Verdana size=2><br><br>You are missing a question or answer.<br><a href=\"#\" onClick=\"history.go(-1)\">Back</a>";
exit;
}
$question = addslashes($_POST['question']);
$answer = addslashes($_POST['answer']);
$interview_id = $_POST['interview_id'];
$section = $_POST['section'];
$sql = "INSERT INTO cms_interviews_qa SET interview_id='$interview_id', question='$question', answer='$answer'";
if (@mysql_query($sql)) {
printf("<meta http-equiv=\"Refresh\" content=\"0;url=./interview_qa_list.php?section=".$section."&id=".$interview_id."\">");
} else {
echo 'Error:' . mysql_error();
}
} else {
if (!isset($_GET['interview_id'])) {
die("no interview_id");
}
$interview_id = $_GET['interview_id'];
if (!isset($_GET['section'])) {
die("no section");
}
$section = $_GET['section'];
?>
<table width="800" border="0" align="center" cellpadding="5" cellspacing="10">
<tr>
<td bgcolor="#CCCCCC" class="bold-14px">Add Question</td>
</tr>
<tr>
<td bgcolor="#F2F2F2"><div align="center">
<form method="post" action="<?=$_SERVER['PHP_SELF']?>">
<table width="350" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="50%" align="right"><div align="right" class="bold-12px">question:</div></td>
<td width="50%"><textarea name="question" cols="75" rows="10" class="grey"></textarea></td>
</tr>
<tr>
<td width="50%" align="right"><div align="right" class="bold-12px">answer:</div></td>
<td width="50%"><textarea name="answer" cols="75" rows="10" class="grey"></textarea></td>
</tr>
<tr>
<td colspan="2" align="right"><div align="center">
<input type="hidden" name="interview_id" value="<?=$interview_id?>">
<input type="hidden" name="section" value="<?=$section?>">
<input type=submit name="post" value=" Add " class="grey">
</div></td>
</tr>
</table>
</form>
</div></td></tr></table>
<?
}
?>