2013-11-02, 09:24 PM
Guys please help me to integrate this code into page manager page that will work with the function Use MyBB Template?

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Meta Tag Generator</title>
</head>
<body>
<form action="" method="post">
<table width="600">
<tr>
<td width="212">Title</td>
<td width="376"><label for="title"></label>
<input name="title" type="text" id="title" size="45" required /></td>
</tr>
<tr>
<td>Description</td>
<td><label for="description"></label>
<textarea name="description" id="description" cols="35" rows="5" required></textarea></td>
</tr>
<tr>
<td>Keywords (Seperate by commas)</td>
<td><label for="keywords"></label>
<textarea name="keywords" id="keywords" cols="35" rows="5" required></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="button" id="button" value="Generate" /></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['title'])){
$title=$_POST['title'];
$description=$_POST['description'];
$keywords=$_POST['keywords'];
echo "<p>Copy the following lines of code and insert them between the ".htmlspecialchars("<head>")." and ".htmlspecialchars("</head>")." tags in your HTML document.</p>";
echo htmlspecialchars("<title>").$title.htmlspecialchars("</title>");
echo "</br>";
echo htmlspecialchars("<meta")." name=\"description\" content=\"".$description."\">";
echo "</br>";
echo htmlspecialchars("<meta")." name=\"keywords\" content=\"".$keywords."\">";
}
?>
</body>
</html>
