<?php
session_start();
require 'include/configurations.php'; // ITECHBIDS Configuration File
require 'include/header.php';
$txtkey=$_POST[txtkey];
$txtdes=$_POST[txtdes];

$cansave=$_POST[cansave];
			if($cansave==1)
			{ 
				$sql_up="update meta_tag set key_s='$txtkey', key_des='$txtdes' where key_id=1";
				$res_up=mysql_query($sql_up);
				$msg=1;
			}
				$sql='select * from meta_tag';
				$res=mysql_query($sql);
				$row=mysql_fetch_array($res); 
?>
<?
if($msg)
{
?>
<table cellpadding="5" width=80% align="center"><tr><td align="center"><font size="+1" color="red">Updated Successfully!</font></td></tr></table>
<?
}
?>
<table align="center" width="80%" class="ft" cellpadding="2" height="200" border="0">
	<tr><td class="ct" height="25">Add keywords to Meta Tag	</td></tr>
 	<tr height="25" ><td align="center"> Enter the keywords with "," between them
<br />
		<form method="post"  name="frmkey" action="search_keys.php">
			<textarea name="txtkey" rows="10" cols="50"><?= $row[key_s]; ?></textarea>
			<input type="hidden" name="cansave" value="1">
		</td></tr>
	<tr><td class="ct" height="25">Add Description to Meta Tag	</td></tr>
 	<tr height="25" ><td align="center"> 
<br />
			<textarea name="txtdes" rows="10" cols="50"><?= $row[key_des]; ?></textarea>
		<br><br><br>
			<input type="submit" class="button"   name="submit" value=" Add ">
		</form>
	</td></tr>


</table>
<br><?php
require 'include/footer.php';
?>