Location: PHPKode > projects > php Blogger > admin/meta.php
<?php
##############################
# meta.php       version 1.1.#
##############################
include ('header.php');
?>
<div id="headermenu">Meta Description & Keywords</div>
<?php
if(isset($_POST['submit'])) {
	$ccmdesc = $_POST['ccmdesc'];
	$cckwords = $_POST['cckwords'];
	if(get_magic_quotes_gpc()) {
		$ccmdesc = stripslashes($ccmdesc);
		$cckwords = stripslashes($cckwords);
	}
	$arecordSet = &$conn->Execute("UPDATE abcoption SET valueopt = '$ccmdesc' WHERE optionid = 2");
	$brecordSet = &$conn->Execute("UPDATE abcoption SET valueopt = '$cckwords' WHERE optionid = 3");
	$conn->Close();
	echo "<div id ='information'>&nbsp;Successfully. "; ?>
	<a href = "meta.php" > Back to Meta Description & Keywords</a></div> 
    <?php } else { ?>
<form method="post" action="meta.php">
Meta Description<br />
<textarea id="incc" name="ccmdesc"><?php echo $metadesc; ?></textarea><br /><br />
Meta Keywords<br />
<textarea id="incc" name="cckwords"><?php echo $keywords; ?></textarea><br /><br />
<input type="submit" class="topicbuton" name="submit" value="Submit" /><br /><br />
</form>
</div>
<?php
$conn->Close();
}
?>
</div></div></div>
<?php include ('footer.php'); ?>
Return current item: php Blogger