print '
extract($_POST);
if(isset($_POST['action'])){
$action = $_POST['action'];
}else
$action = NULL;
if(isset($_POST['getmetafrompage'])){
$getmetafrompage = $_POST['getmetafrompage'];
}else
$getmetafrompage = NULL;
if ($action == “generate”)
{
print “
Insert the following HTML code between the <HEAD> tags of your site:”;
print “
print “Create another set of meta tags
“;
}
else
{
print “Nattu testing”;
if (isset($getmetafrompage))
{
$MetaTags = get_meta_tags($getmetafrompage);
}
if(isset($MetaTags["description"]))
$description = $MetaTags["description"];
else
$description = NULL;
if(isset($MetaTags["keywords"]))
$keywords = $MetaTags["keywords"];
else
$keywords = NULL;
if(isset($MetaTags["robot1"]))
$robot = $MetaTags["robot1"];
else
$robot1 = NULL;
if(isset($MetaTags["author1"]))
$author = $MetaTags["author1"];
else
$author = NULL;
if(isset($MetaTags["refresh"]))
$refresh = $MetaTags["refresh"];
else
$refresh = NULL;
if(isset($MetaTags["copyright"]))
$copyright = $MetaTags["copyright"];
else
$copyright = NULL;
if(isset($MetaTags["revisit-after"]))
$revisit = $MetaTags["revisit-after"];
else
$revisit = NULL;
if(isset($MetaTags["generator"]))
$generator = $MetaTags["generator"];
else
$generator = NULL;
if(isset($MetaTags["language"]))
$language = $MetaTags["language"];
else
$language = NULL;
$year = date(’y');
print “
“;
print ““;
}
print ‘
‘;
?>