I have an error like this
Notice: Undefined index: txtsearchAdmin in C:\xampp\htdocs\game_update\main_show.php on line 74
Notice: Undefined index: txtsearchAdmin in C:\xampp\htdocs\game_update\main_show.php on line 74
Notice: Undefined index: txtsearchAdmin in C:\xampp\htdocs\game_update\main_show.php on line 74
Notice: Undefined index: txtsearchAdmin in C:\xampp\htdocs\game_update\main_show.php on line 74
Notice: Undefined index: txtsearchAdmin in C:\xampp\htdocs\game_update\main_show.php on line 74
Notice: Undefined index: txtsearchAdmin in C:\xampp\htdocs\game_update\main_show.php on line 74
Here is the codes :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Arsip Game Update</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<link href="link.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.style11 {color: #FFFFFF}
</style>
</head>
<body bgcolor="#000000">
<? session_start() ?>
<br />
<table width="750" border="1" align="center">
<tr>
<td width="519"><table width="460" border="0" class="style2">
<tr class="style11">
<td width="150"><a href="main_admin.html">
<label>
<input type="submit" name="btnInputUpdate" id="btnInputUpdate" value="Input Update"/>
</label>
</a></td>
<td width="150"><a href="main_error.html">
<label>
<input type="submit" name="btnInputError" id="btnInputError" value="Input Error"/>
</label>
</a></td>
<td width="150"><a href="main_show.php">
<label>
<input type="submit" name="btnViewUpdate" id="btnViewUpdate" value="View Update"/>
</label>
</a></td>
<td width="150"><a href="error_show.php">
<label>
<input type="submit" name="btnViewError" id="btnViewError" value="View Error"/>
</label>
</a></td>
</tr>
</table></td>
<td width="171"><div align="center"><a href="logout.php" class="style1">LOGOUT</a></div></td>
</tr>
<tr>
<td colspan="2"><table width="750" border="0" cellpadding="0" cellspacing="0" class="style1">
<tr>
<td width="698"><div align="right">
<form id="form2" name="form2" method="post" action="main_show.php">
<label>
<input align="absmiddle" type="text" name="txtsearchAdmin" id="txtsearchAdmin" />
</label>
</form>
</div></td>
</tr>
<tr>
<td><?
$con = mysql_connect("$_SESSION[host]", "$_SESSION[username]", "$_SESSION[password]");
$num = 1;
if(!$con)
{
die('Could Not Connect : ' . mysql_error());
}
mysql_select_db("$_SESSION[db_name]", $con);
$data = "SELECT * FROM arsip_detail WHERE serial LIKE '%$_POST[txtsearchAdmin]%' OR nama_game LIKE '%$_POST[txtsearchAdmin]%' OR tgl_patch LIKE '%$_POST[txtsearchAdmin]%' OR server LIKE '%$_POST[txtsearchAdmin]%' OR status LIKE '%$_POST[txtsearchAdmin]%' OR s_version LIKE '%$_POST[txtsearchAdmin]%' ORDER BY id DESC"; //line 77
$hasil = mysql_query($data);
?>
<table width="1200" border="1">
<tr class="style1">
<td width="40">No.</td>
<td width="131">Serial</td>
<td width="131">Nama Game</td>
<td width="131">Tgl Patch</td>
<td width="98">Server</td>
<td width="66">Status</td>
<td width="122">Version</td>
<td width="210"> </td>
<td width="210"> </td>
</tr>
</table>
<? while ($r=mysql_fetch_array($hasil))
{
;
?>
<table width="1200" border="1">
<tr>
<td width="40"><? echo "<span class=\"style1\"> $num."?></td>
<td width="131"><? echo "$r[serial]"?></td>
<td width="131"><? echo "$r[nama_game]"?></td>
<td width="131"><? echo "$r[tgl_patch]"?></td>
<td width="98"><? echo "$r[server] "?></td>
<td width="66"><? echo "$r[status] "?></td>
<td width="122"><? echo "$r[s_version]" ?></td>
<td><? echo "<form id=\"form1\" name=\"form1\" method=\"post\" action=\"second_show.php\" target=\"_blank\">
<input type=\"submit\" name=\"btnSave\" id=\"btnSave$r[id]\" value=\"View\" />
<input type=\"text\" name=\"txtSearchA\" id=\"txtSearchA$r[id]\" style=\"visibility:hidden\" value=\"$r[id]\" />
</form>" ?>
<? echo "<form id=\"form1\" name=\"form1\" method=\"post\" action=\"edit.php\" target=\"_blank\">
<input type=\"submit\" name=\"btnSave\" id=\"btnSave$r[id]\" value=\"Edit\" />
<input type=\"text\" name=\"txtSearch\" id=\"txtSearch$r[id]\" style=\"visibility:hidden\" value=\"$r[id]\" />
</form>" ?></td>
</tr>
</table><?
$num = $num + 1;
}?></td>
</tr>
<tr>
<td><label>
<a href="main_admin.html">
<input type="submit" name="btninput" id="btninput" value="Input New Arsip" />
</a></label></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>
Can anyone help me?